/* ====== Tuğla Kırma Oyunu ====== */

/* Oyun aktifken uygulamayı genişlet (pati/burger gibi) */
.app:has(#screen-game.active) { max-width: 980px; }

.game-card { padding: 20px 24px 24px; }

.game-hud {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-badge {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.game-badge-level { color: #818cf8; border-color: #4f46e5; }
.game-badge-lives { letter-spacing: 1px; }

.game-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

#game-canvas {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 30, 0.88);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.game-overlay.hidden { display: none; }

.game-overlay-inner {
  text-align: center;
  padding: 28px 24px;
}

.game-overlay-emoji {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.game-overlay-inner h2 { margin-bottom: 8px; font-size: 22px; }

.game-overlay-inner p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}
