/* ==========================================================================
   MINI-GAMES STYLES - ARCADE OF SURVIVAL
   ========================================================================== */

/* Game Canvas Container */
.game-arcade-box {
  background: rgba(12, 12, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dynamic);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-stat {
  display: flex;
  flex-direction: column;
}

.hud-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hud-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Canvas Area */
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: #060608;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#runnerCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

#runnerCanvas:active {
  cursor: grabbing;
}

/* Game Over & Start Overlay */
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 18px;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.game-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.overlay-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
}

.mobile-touch-controls {
  display: none !important;
}

@media (max-width: 768px) {
  .canvas-wrapper {
    height: 420px;
  }
}

/* ==========================================================================
   GAME 2: ETÜT ODASI BARİKATI (STEALTH & TENSION)
   ========================================================================== */
.stealth-game-box {
  background: rgba(15, 15, 20, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px;
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

.siren-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sirens-active .siren-ambient {
  opacity: 0.25;
  animation: policeSirens 1s infinite alternate;
}

@keyframes policeSirens {
  0% { background: radial-gradient(circle at top left, #ff3b30, transparent 70%); }
  100% { background: radial-gradient(circle at top right, #007aff, transparent 70%); }
}

.stealth-status-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.door-graphic-area {
  height: 180px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease;
}

.door-graphic-area.banging {
  animation: doorShake 0.15s infinite;
}

@keyframes doorShake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  20% { transform: translate(-2px, -1px) rotate(-0.5deg); }
  40% { transform: translate(2px, 1px) rotate(0.5deg); }
  60% { transform: translate(-1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -1px) rotate(0deg); }
}

.baba-bubble {
  position: absolute;
  top: 20px;
  background: #FFD60A;
  color: #000000;
  padding: 10px 18px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(255, 214, 10, 0.4);
  max-width: 80%;
  text-align: center;
  transition: all 0.2s ease;
}

.baba-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #FFD60A transparent;
}

.gauges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stealth-action-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.big-paragraf-btn {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  background: var(--aurora-gradient);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: var(--glow-blue);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.big-paragraf-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.big-paragraf-btn:active {
  transform: scale(0.96);
  filter: brightness(0.9);
}

/* ==========================================================================
   GAME 3: ABSÜRT HAYATTA KALMA KARARLARI (DILEMMA ENGINE)
   ========================================================================== */
.dilemma-card-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dilemma-stats-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dilemma-stat {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dilemma-question-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dilemma-step-pill {
  align-self: flex-start;
}

.dilemma-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
}

.dilemma-options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dilemma-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.dilemma-opt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--apple-blue);
  transform: translateX(4px);
}

.opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.dilemma-result-modal {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  animation: fadeIn 0.4s ease;
}

.dilemma-result-modal.active {
  display: flex;
}

/* ==========================================================================
   MINI-GAMES MOBILE RESPONSIVE TWEAKS
   ========================================================================== */
#runnerCanvas {
  touch-action: none;
}

@media (max-width: 768px) {
  .game-arcade-box {
    border-radius: var(--radius-lg);
  }
  .game-hud {
    padding: 12px 16px;
  }
  .hud-value {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .canvas-wrapper {
    height: 340px;
  }
  .game-tab-bar {
    gap: 6px;
    margin-bottom: 20px;
  }
  .game-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .overlay-title {
    font-size: 1.6rem;
  }
  .overlay-desc {
    font-size: 0.88rem;
  }
  
  /* Stealth Game Mobile */
  .stealth-game-box {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
  .door-graphic-area {
    height: 140px;
  }
  .baba-bubble {
    font-size: 0.8rem;
    padding: 6px 12px;
    max-width: 90%;
  }
  .gauges-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .big-paragraf-btn {
    padding: 16px;
    font-size: 0.95rem;
    width: 100%;
  }

  /* Dilemma Mobile */
  .dilemma-card-wrapper {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    gap: 16px;
  }
  .dilemma-stats-header {
    gap: 6px;
    padding-bottom: 12px;
  }
  .dilemma-stat {
    padding: 6px;
  }
  .dilemma-stat .hud-value {
    font-size: 0.95rem;
  }
  .dilemma-stat .hud-label {
    font-size: 0.65rem;
  }
  .dilemma-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  .dilemma-opt-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
    gap: 10px;
  }
  .opt-letter {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}

