/* ==========================================================
   Swipe Brick Breaker - Minimalist Modern Mobile / Flutter UI
   ========================================================== */

:root {
  --bg-dark: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #1e293b;
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.25);
  --accent: #38bdf8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gold: #facc15;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overscroll-behavior: none;
  touch-action: manipulation;
}

#app-root {
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #0a0e17 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}

/* Minimalist App Bar / Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 30;
  min-height: 48px;
}

.header-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.currency-badge .star-icon {
  color: #fbbf24;
  font-size: 0.85rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

/* Minimalist Ana Menü */
.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  gap: 14px;
  overflow-y: auto;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.game-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.game-logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.game-logo-sub {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Günlük Hediye Kutusu */
.daily-gift-card {
  width: 100%;
  max-width: 320px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.daily-gift-card.ready {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.daily-gift-card.ready .gift-timer-txt,
.daily-gift-card.ready .gift-title-txt {
  color: #0b0f19 !important;
  font-weight: 700;
}

.gift-icon {
  font-size: 1.3rem;
}

.gift-info {
  flex: 1;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}

.gift-title-txt {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-main);
}

.gift-timer-txt {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

/* Menü Butonları (Kompakt ve Zarif) */
.menu-buttons-list {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.btn-primary {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  color: #0b0f19;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.1s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  width: 100%;
  height: 40px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-secondary:active {
  transform: scale(0.97);
  background: var(--bg-card);
}

.btn-reward-ad {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-reward-ad:active {
  transform: scale(0.97);
}

/* Minimal Modallar */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 310px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hidden {
  display: none !important;
}
