/* css/game.css */
/* Aizanoi Dungeon — AizanoiOS Uyumlu Tasarım Sistemi */

:root {
  --az-bg: #14171d;
  --az-surface: rgba(255, 255, 255, 0.90);
  --az-surface-translucent: rgba(255, 255, 255, 0.82);
  --az-surface-dark: rgba(26, 31, 44, 0.92);
  --az-border: rgba(197, 160, 89, 0.45);
  --az-border-strong: #c5a059;
  --az-gold: #d4ac0d;
  --az-text-main: #1e293b;
  --az-text-muted: #64748b;
  --az-text-light: #f8fafc;
  --az-cyan-glow: #00d2ff;
  --az-purple-spark: #a569bd;
  --az-health-red: #e74c3c;
  --az-health-green: #27ae60;
  --az-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.aizanoi-standalone-body * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body.aizanoi-standalone-body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

.aizanoi-standalone-body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at center, #1e2430 0%, #0d1017 100%);
  font-family: var(--az-font);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

.aizanoi-dungeon-app-root {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0b0d13;
}

.aizanoi-dungeon-app-root canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(197, 160, 89, 0.35);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  touch-action: none;
}

.az-play-anyway {
  margin-top: 16px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c5a059;
  border-radius: 10px;
  background: #141822;
  color: #f5d77f;
  font-weight: 700;
  cursor: pointer;
}

.az-fs-fab {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(197, 160, 89, 0.7);
  border-radius: 12px;
  background: rgba(20, 24, 34, 0.9);
  color: #f5d77f;
  font-weight: 700;
  cursor: pointer;
}

/* Sol kenar donus kontrolu (yalnizca AizanoiOS mount) */
.az-dungeon-exit {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px 10px 8px;
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-left: none;
  border-radius: 0 12px 12px 0;
  background: rgba(20, 24, 34, 0.88);
  color: #f5d77f;
  font-family: var(--az-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: manipulation;
}
.az-dungeon-exit:hover {
  background: rgba(38, 46, 64, 0.95);
  border-color: #d4ac0d;
}
.az-dungeon-exit:focus-visible {
  outline: 2px solid #d4ac0d;
  outline-offset: 2px;
}
.az-dungeon-exit:active {
  transform: translateY(-50%) scale(0.97);
}
.az-dungeon-exit-arrow {
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 640px) {
  .az-dungeon-exit-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .az-dungeon-exit {
    padding: 10px;
    min-width: 44px;
    justify-content: center;
    border-radius: 0 12px 12px 0;
  }
}

/* Orientation Warning Overlay */
.orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(11, 13, 19, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orientation-card {
  background: var(--az-surface);
  border: 2px solid var(--az-border-strong);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.rotate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulseRotate 2s infinite ease-in-out;
}

@keyframes pulseRotate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(90deg); }
}

.orientation-card h2 {
  color: var(--az-text-main);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.orientation-card p {
  color: var(--az-text-muted);
  font-size: 0.95rem;
}

.orientation-overlay[hidden] {
  display: none !important;
}
