/* ==========================================================
   Swipe Brick Breaker - Minimalist Oyun Alanı ve HUD Stilleri
   ========================================================== */

#game-screen {
  background: #080c14;
}

#canvas-container {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Oyun Üst Paneli (Kompakt HUD) */
.game-hud {
  position: absolute;
  top: var(--safe-top);
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.9) 0%, rgba(8, 12, 20, 0) 100%);
}

.game-hud * {
  pointer-events: auto;
}

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hud-score {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* Oyun İçi Kontrol Butonları (Hızlandır & Geri Çağır) */
.game-controls-overlay {
  position: absolute;
  bottom: 16px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 40;
}

.hud-action-btn {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}

.hud-action-btn:active {
  transform: scale(0.92);
  background: var(--bg-card);
}

/* 100 Seviye Seçim Izgarası */
.level-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  overflow: hidden;
}

.level-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg-surface);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.level-page-txt {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.level-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 62px;
  gap: 8px;
  overflow-y: auto;
  padding-bottom: 14px;
}

.level-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.1s ease;
  position: relative;
}

.level-card.unlocked:active {
  transform: scale(0.94);
}

.level-card.current {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.level-card.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.level-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.level-stars-mini {
  display: flex;
  gap: 1px;
  font-size: 0.65rem;
  color: #475569;
}

.level-stars-mini span.active {
  color: #fbbf24;
}

.lock-icon {
  font-size: 0.9rem;
}

/* Mağaza */
.shop-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
  overflow-y: auto;
}

.shop-ad-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-card.equipped {
  border-color: var(--primary);
}

.skin-preview {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.skin-name {
  flex: 1;
  margin-left: 12px;
  font-weight: 700;
  font-size: 0.88rem;
}

.skin-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.skin-action-btn.active {
  background: var(--primary);
  color: #0b0f19;
  border: none;
}

/* Ayarlar Menüsü */
.settings-container {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-group {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 14px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-label {
  font-weight: 600;
  font-size: 0.88rem;
}

/* iOS Tarzı Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Yıldız Animasyonu */
.win-stars-display {
  display: flex;
  gap: 6px;
  font-size: 1.8rem;
  color: #334155;
  margin: 4px 0;
}

.win-stars-display .star-icon.active {
  color: #fbbf24;
}

/* Reklam Player Kutusu */
.ad-video-box {
  width: 100%;
  height: 120px;
  background: #000000;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}

.ad-sponsor-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #e2e8f0;
}

.ad-timer-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0, 242, 254, 0.25);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}
