/* ═══════════════════════════════════════════════════════════
   BAKCELL RUNNER — Portrait Mobile (1080×1920)
   Tüm boyutlar --vw custom property ile ölçeklenir.
   --vw = viewport genişliğinin %1'i (JS'den set edilir)
   Tüm tarayıcılarda (iOS Safari dahil) güvenle çalışır.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Loos';
  src: url('fonts/Loos_Normal_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Loos';
  src: url('fonts/Loos_Normal_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Loos';
  src: url('fonts/Loos_Normal_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Loos';
  src: url('fonts/Loos_Normal_Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════
   PRELOADER
═══════════════════════════════════════ */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;  /* başlangıçta tam ekran — JS doResize 9:16'ya daraltır */
  z-index: 9999;
  background: url('../assets/ui/menu_bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Oyun logosu — menüdeki .menu-logo-area / .menu-logo-img ile aynı konum */
.preloader-game-logo {
  position: absolute;
  top: calc(var(--safe-top) + calc(20 * var(--vw)));
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-game-logo img {
  width: calc(79.3 * var(--vw));
  height: calc(79.3 * var(--vw) * (394 / 856));
  display: block;
  object-fit: contain;
}

/* Progress bar — tam ortada */
.preloader-bar-wrap {
  width: calc(60 * var(--vw));
  height: 6px;
  background: rgba(255,255,255,0.20);
  border-radius: 3px;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: #FF0037;
  border-radius: 3px;
  transition: width 0.15s ease;
}
.preloader-pct {
  position: absolute;
  top: calc(50% + 18px);
  left: 0; right: 0;
  text-align: center;
  font-family: 'Loos', sans-serif;
  font-size: calc(3.5 * var(--vw));
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.preloader-error {
  display: none;
  text-align: center;
  font-family: 'Loos', sans-serif;
  font-size: calc(4 * var(--vw));
  font-weight: 400;
  color: #ffffff;
  margin-bottom: calc(3 * var(--vw));
  padding: 1rem;
  line-height: 1.4;
  background: #ff344b7a;
  border: 1px solid #ff344b;
  border-radius: 0.5rem;
  width: 85%;
  text-shadow: 0 0px 10px rgba(0,0,0,0.50);
}

/* Bakcell logosu — menüdeki .menu-bakcell-img ile aynı konum */
.preloader-bakcell-logo {
  position: absolute;
  bottom: calc(var(--safe-bot) + calc(5 * var(--vw)));
  left: 50%;
  transform: translateX(-50%);
  width: calc(23.05 * var(--vw));
  height: calc(23.05 * var(--vw) * (49 / 249));
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

/* ── Preloader --vw fallback: 100vw / 100 = 1vw (JS 9:16 değerini set eder) ── */
#preloader { --vw: 1vw; }

:root {
  --red:       #FF0037;
  --red-dark:  #B01020;
  --red-light: #FF4455;
  --white:     #FFFFFF;
  --card-bg:   rgba(255,255,255,0.97);
  --dark:      #111111;
  --grey:      #AAAAAA;
  --shadow:    0 8px 32px rgba(0,0,0,0.45);
  --font:      'Loos', sans-serif;
  --safe-top:  env(safe-area-inset-top, 0px);
  --safe-bot:  env(safe-area-inset-bottom, 0px);
  /* --vw: JS tarafından set edilir: viewport genişliğinin %1'i */
  --vw: 3.75px; /* fallback: 375px genişlik için */
}

html, body {
  /* iframe/WebView/tarayıcı — her ortamda tam dolum */
  width: 100%; height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  margin: 0; padding: 0;
}

body {
  background: #000;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

/* ── Portrait viewport — 9:16 ── */
#game-viewport {
  position: relative;
  overflow: hidden;
  background: #1a0608;
  flex-shrink: 0;
}

/* ── Canvas ── */
#gameCanvas {
  position: absolute; inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  display: block;
  touch-action: none;
  outline: none;
}

/* ═══════════════════════════════════════
   SCREEN SYSTEM
═══════════════════════════════════════ */
.screen {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding-top: calc(var(--safe-top) + calc(1.5 * var(--vw)));
  padding-bottom: calc(var(--safe-bot) + calc(1.5 * var(--vw)));
}
.screen.active { opacity: 1; pointer-events: all; }

/* ═══════════════════════════════════════
   1. MENU SCREEN
═══════════════════════════════════════ */
#screen-menu {
  justify-content: center;
  align-items: center;
  background: url('../assets/ui/menu_bg.png') center center / cover no-repeat;
}

.menu-logo-area {
  position: absolute;
  top: calc(var(--safe-top) + calc(20 * var(--vw)));
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* game_logo.png: 856×394px → 856/1080 = 79.3vw */
.menu-logo-img {
  width: calc(79.3 * var(--vw));
  height: calc(79.3 * var(--vw) * (394 / 856));
  display: block;
  object-fit: contain;
}

/* play butonu — ekranın tam ortasında (absolute) */
.menu-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none; border: none;
  cursor: pointer;
  transition: transform 0.15s;
  touch-action: manipulation;
  padding: 0;
}
.menu-play-btn:active { transform: translate(-50%, -50%) scale(0.93) !important; }
/* play_button.png: 399×363px → 399/1080 = 36.9vw */
.menu-play-btn img {
  width: calc(36.9 * var(--vw));
  height: calc(36.9 * var(--vw) * (363 / 399));
  display: block;
  object-fit: contain;
}

/* howto butonu — play'in altında, ikon yüksekliği + 50px boşluk */
/* ikon yüksekliği: 15.09vw * (176/163) = ~16.28vw */
/* play yüksekliği: 36.9vw * (363/399) = ~33.58vw */
/* play merkezi 50% → alt kenar: 50% + 33.58vw/2 = 50% + 16.79vw */
/* boşluk: 16.28vw + 50px → howto top: 50% + 16.79vw + 16.28vw + 50px */
.menu-howto-btn {
  position: absolute;
  top: calc(50% + calc(16.79 * var(--vw)) + 25px);
  left: 50%;
  transform: translateX(-50%);
}
.menu-howto-btn:active { transform: translateX(-50%) scale(0.90) !important; }
.menu-howto-btn:hover  { transform: translateX(-50%) !important; }

.menu-icon-btn {
  background: none; border: none;
  padding: 0; cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.menu-icon-btn:active { transform: scale(0.90); }
/* icon butonlar: 163×176px → 163/1080 = 15.09vw */
.menu-icon-btn.img-btn img {
  width: calc(15.09 * var(--vw));
  height: calc(15.09 * var(--vw) * (176 / 163));
  display: block;
  object-fit: contain;
}

/* bakcell_logo.png: 249×49px → 249/1080 = 23.05vw */
.menu-bakcell-img {
  position: absolute;
  bottom: calc(var(--safe-bot) + calc(5 * var(--vw)));
  left: 50%;
  transform: translateX(-50%);
  width: calc(23.05 * var(--vw));
  height: calc(23.05 * var(--vw) * (49 / 249));
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

.preloader-version,
.menu-version {
  position: absolute;
  bottom: calc(var(--safe-bot) + 5px);
  right: 5px;
  left: auto;
  transform: none;
  font-family: 'Loos', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.25;
  white-space: nowrap;
  text-align: right;
}

/* ═══════════════════════════════════════
   2. HOW TO PLAY
═══════════════════════════════════════ */
#screen-how-to-play {
  background: rgba(0,0,0,0.75);
  flex-direction: column;
  gap: 0;
  z-index: 11;
}

/* panel_ui.png: 823×1127 → 76.2% of viewport width */
.howto-card {
  background-image: url('../assets/ui/panel_ui.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: calc(3.5 * var(--vw));
  width: calc(76.2 * var(--vw));
  aspect-ratio: 823 / 1127;
  padding-top: calc(11 * var(--vw));
  padding-left: calc(5 * var(--vw));
  padding-right: calc(5 * var(--vw));
  padding-bottom: calc(4 * var(--vw));
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  color: #000;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* close_button.png: 126×116 → 11.7% */
.howto-close-outside {
  position: absolute;
  top: calc(var(--safe-top) + calc(3.5 * var(--vw)));
  right: calc(3.5 * var(--vw));
  background: none; border: none;
  padding: 0; cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s;
  z-index: 20;
}
.howto-close-outside:active { transform: scale(0.88); }
.howto-close-outside img {
  width: calc(11.7 * var(--vw));
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.howto-card-title {
  position: absolute;
  top: calc(8.5 * var(--vw));
  left: 0; right: 0;
  font-weight: 700;
  font-size: calc(5.3 * var(--vw));
  text-align: center;
  color: #fff;
  letter-spacing: 1px;
  pointer-events: none;
}

.howto-rows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 84%;
  flex: 1;
  gap: calc(4 * var(--vw));
  margin: 0 auto;
}

.howto-row {
  display: flex;
  align-items: center;
  gap: calc(3 * var(--vw));
}
/* howtoplay_icon: 162×164 → 15% */
.howto-row-icon {
  width: calc(15 * var(--vw));
  height: calc(15 * var(--vw));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.howto-row-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.howto-row-text {
  font-size: calc(2.7 * var(--vw));
  line-height: 1.4;
  color: #000;
  font-weight: 700;
  flex: 1;
}
.howto-row-text strong {
  display: block;
  font-weight: 700;
  color: #000;
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════
   3. CHARACTER SELECT
═══════════════════════════════════════ */
#screen-character-select {
  background: url('../assets/ui/character_select_bg.png') center center / cover no-repeat;
  justify-content: center;
  gap: calc(6 * var(--vw));
}

/* close_button.png: 11.7% */
.charsel-back {
  position: absolute;
  top: calc(var(--safe-top) + calc(3.5 * var(--vw)));
  right: calc(3.5 * var(--vw));
  background: none; border: none;
  padding: 0; cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s;
  z-index: 20;
}
.charsel-back:active { transform: scale(0.88); }
.charsel-back img {
  width: calc(11.7 * var(--vw));
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.charsel-title {
  display: none;
}

.charsel-carousel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  display: flex;
  align-items: center;
  gap: calc(3 * var(--vw));
}
.charsel-viewport {
  width: calc(44 * var(--vw));
  overflow: hidden;
  border-radius: calc(5 * var(--vw));
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}
.charsel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.charsel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.charsel-avatar-img {
  width: 100%; height: auto;
  display: block;
  border-radius: calc(5 * var(--vw));
  object-fit: contain;
}

/* arrow: 143×255px orijinal boyut → 143/1080 = 13.24vw */
.charsel-arrow {
  background: none; border: none;
  padding: 0; cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  /* Boyut kısıtı yok — img kendi boyutunu belirler */
}
.charsel-arrow img {
  width: calc(13.24 * var(--vw));
  height: calc(13.24 * var(--vw) * (255 / 143)); /* aspect ratio: 143×255 */
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.charsel-arrow:active { transform: scale(0.88); }

.btn-start-game {
  position: absolute;
  bottom: calc(16 * var(--vw));
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 60px;
  padding: 0 calc(5 * var(--vw));
  font-size: 34px;
  padding-top: 3px; /* text 3px aşağı */
  text-transform: capitalize !important;
  border-radius: 10px !important;
  background: #FF0037 !important;
  background-image: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

/* ─── Shared Red Button ─── */
.btn-red {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff;
  border: none;
  border-radius: calc(3.5 * var(--vw));
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,25,44,0.45);
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Text tam ortalama — dikey ve yatay */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
.btn-red:active { transform: scale(0.96); box-shadow: 0 2px 10px rgba(232,25,44,0.35); }
.btn-start-game:active { transform: translateX(-50%) scale(0.96) !important; background: #FF0037 !important; background-image: none !important; box-shadow: none; }
.btn-red:disabled { opacity: 0.35; pointer-events: none; }

/* ═══════════════════════════════════════
   HUD
═══════════════════════════════════════ */
#hud {
  position: absolute;
  top: calc(var(--safe-top) + calc(1.5 * var(--vw)));
  left: 0; right: 0;
  z-index: 20;
  padding: 0 calc(4 * var(--vw));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
#hud.hidden { display: none; }

/* ScoreBar.png: 270×130px orijinal boyut → 270/1080 = 25vw */
.hud-score-box {
  background-image: url('../assets/ui/ScoreBar.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none; border-radius: 0;
  padding: 0;
  display: flex; align-items: center; justify-content: flex-start;
  width: calc(25 * var(--vw));
  height: calc(25 * var(--vw) * (130 / 270));
  margin-top: 5px; /* 5px aşağı */
}
.hud-score-val {
  font-family: var(--font);
  font-size: calc(4.2 * var(--vw));
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-left: calc(12 * var(--vw)); /* biraz sağa */
}

.hud-timer {
  font-family: var(--font);
  font-size: calc(4.4 * var(--vw)); /* biraz büyük */
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
}

/* Damage flash */
#damage-overlay {
  position: absolute; inset: 0; z-index: 30;
  pointer-events: none;
}
#damage-overlay.flash { animation: dmgFlash 0.5s ease; }
@keyframes dmgFlash {
  0%  { background: rgba(232,25,44,0); }
  25% { background: rgba(232,25,44,0.4); }
  100%{ background: rgba(232,25,44,0); }
}

@keyframes floatUp {
  0%  { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
  30% { transform:translateX(-50%) translateY(-20px) scale(1.2); }
  100%{ opacity:0; transform:translateX(-50%) translateY(-75px) scale(0.9); }
}

/* ═══════════════════════════════════════
   4. GAME OVER
═══════════════════════════════════════ */
#screen-game-over {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#confetti-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* panel_ui.png: 823×1127 → 76.2% */
.gameover-card {
  /* --u: kartın ölçek birimi. Portrait'te --vw (mevcut tasarım, regresyonsuz);
     yükseklik kısıtlıyken (landscape / kısa ekran) 0.9·--vh devreye girer →
     kart + TÜM içeriği (font/padding/offset, hepsi --u bazlı) orantılı küçülür,
     overflow:hidden ile kesilmez. Kat sayı: kart yüksekliği = 76.2·--u·(1127/823)
     ≈ 104·--u; 0.9·--vh tavanı ile ≤ ~94vh. (10 Haz 2026 müşteri bildirimi.) */
  --u: min(var(--vw), calc(0.9 * var(--vh)));
  background-image: url('../assets/ui/panel_ui.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: calc(3.5 * var(--u));
  width: calc(76.2 * var(--u));
  /* 17 Haz 2026 müşteri bildirimi (Samsung Galaxy A52): sabit yükseklikli kart
     (aspect-ratio) + overflow:hidden, içerik uzunken alttaki restart/home
     ikonlarını kesiyordu. Tetikleyici: RU uzun etiketler ("Общее количество
     очков", "Собранные элементы") cihazın sistem fontunda 2 satıra sarıp
     içeriği kart yüksekliğini aşırıyor; .gameover-actions `top:6.67·u` ile
     aşağıda + alt padding 5·u (< 6.67·u) olduğundan butonlar kart dışında kalıp
     kırpılıyordu. Çözüm: sabit yükseklik TAVANINI min-height TABANINA çevir →
     kart panel_ui oranını korur ama içerik uzunsa büyür (background-size:100%
     100% PNG'yi esnetir); alt padding 5·u→10·u ile +6.67·u buton ofseti kartın
     içinde kalır. İç yerleşim (satır/offset) değişmedi → kısa içerik regresyonsuz. */
  min-height: calc(104.35 * var(--u)); /* eski sabit yükseklik (76.2·1127/823) artık taban */
  height: auto;                        /* içerik taşarsa kart aşağı doğru büyür, kesmez */
  padding: calc(11 * var(--u)) calc(7 * var(--u)) calc(10 * var(--u)); /* alt 5→10·u: buton ofsetini içeri al */
  box-shadow: var(--shadow);
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.gameover-title {
  font-weight: 700;
  font-size: calc(6.5 * var(--u));
  color: #ffffff;
  letter-spacing: 1px;
  text-align: center;
  margin-top: calc(-1 * var(--u));
  margin-bottom: calc(1 * var(--u));
  position: relative;
  top: calc(-2.67 * var(--u)); /* eski -10px @375 */
  /* 10 Haz 2026 müşteri #1: RU "Игра окончена!" pill'e sığmayıp 2. satıra
     sarıyor, 2. satır beyaz panelde beyaz yazı = görünmez ("Игра" kalıyordu).
     Tek satır zorunlu; uzun diller dil-bazlı küçültülür (aşağıda). */
  white-space: nowrap;
}
html[data-lang="ru"] .gameover-title {
  font-size: calc(5 * var(--u)); /* "Игра окончена!" 14 karakter — pill'e tek satır sığar */
}
.gameover-subtitle {
  display: block;
  font-size: calc(4.8 * var(--u));
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: calc(1 * var(--u));
  position: relative;
  top: calc(-2.67 * var(--u)); /* eski -10px @375 */
}
.gameover-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  top: calc(8 * var(--u)); /* eski 30px @375 */
}
.go-stat-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: calc(1.5 * var(--u)) 0;
  padding-bottom: calc(4.17 * var(--u)); /* eski 1.5·--u + 10px @375 */
  text-align: center;
}
.go-stat-label {
  font-size: calc(4.2 * var(--u));
  font-weight: 700;
  color: #111;
  letter-spacing: 0.5px;
}
.go-stat-val {
  font-family: var(--font);
  font-size: calc(9.5 * var(--u));
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-top: calc(1.83 * var(--u)); /* eski 0.5·--u + 5px @375 */
}
#go-time {
  font-size: calc(4.1 * var(--u)); /* 2px daha küçük */
  font-weight: 700;
  color: #111;
}
#go-time-row { padding: calc(1 * var(--u)) 0; padding-bottom: calc(2.33 * var(--u)); } /* eski 1·--u + 5px @375 */
#go-collected {
  font-size: calc(4.1 * var(--u)); /* 2px daha küçük */
  font-weight: 700;
  color: #111;
}

/* restart_button: 151×149 → 14% */
/* API durum mesajı — göndərilir / xəta */
/* ── Score hata overlay ── */
.go-error-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(3 * var(--u));
  padding: calc(6 * var(--u));
  z-index: 10;
}
.go-error-title {
  font-family: var(--font);
  font-size: calc(6.5 * var(--u));
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-align: center;
  margin-top: calc(-1 * var(--u));
  margin-bottom: calc(1 * var(--u));
  position: absolute;
  top: calc(9 * var(--u));
}
.go-error-message {
  font-family: var(--font);
  font-size: calc(3.6 * var(--u));
  font-weight: 700;
  color: #111;
  text-align: center;
  line-height: 1.4;
  margin-bottom: calc(4 * var(--u));
}
.go-error-btn {
  position: absolute;
  bottom: calc(10.67 * var(--u)); /* eski 40px @375 */
  margin-top: calc(2 * var(--u));
  background: #FF0037;
  border: none;
  border-radius: calc(2.5 * var(--u));
  color: #fff;
  font-family: var(--font);
  font-size: calc(3.5 * var(--u));
  font-weight: 700;
  padding: calc(2.5 * var(--u)) calc(10 * var(--u));
  cursor: pointer;
}

.go-api-status {
  min-height: calc(4 * var(--u));
  text-align: center;
  font-family: var(--font);
  font-size: calc(2.8 * var(--u));
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  padding: calc(1 * var(--u)) 0 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.go-api-status.go-api-error {
  color: #FF6B6B;
}
.go-api-status.go-api-pending {
  color: rgba(255,255,255,0.40);
}

.gameover-actions {
  display: flex;
  justify-content: center;
  gap: calc(7 * var(--u));
  margin-top: calc(1 * var(--u));
  width: 100%;
  position: relative;
  top: calc(6.67 * var(--u)); /* eski 25px @375 */
}
.go-img-btn {
  background: none; border: none;
  cursor: pointer; padding: 0;
  touch-action: manipulation;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.go-img-btn:active { transform: scale(0.90); }
.go-img-btn img {
  width: calc(14 * var(--u));
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════
   SWIPE HINT
═══════════════════════════════════════ */
.swipe-hint {
  position: absolute;
  bottom: calc(var(--safe-bot) + calc(2.5 * var(--vw)));
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  display: flex;
  align-items: center;
  gap: calc(2.5 * var(--vw));
  background: rgba(0,0,0,0.55);
  border-radius: calc(5 * var(--vw));
  padding: calc(2 * var(--vw)) calc(4.5 * var(--vw));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 1;
}
.swipe-hint span {
  font-size: calc(5.5 * var(--vw));
  animation: hintBounce 0.8s ease infinite alternate;
}
.swipe-hint-text {
  font-size: calc(3.2 * var(--vw));
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  animation: none;
}
@keyframes hintBounce {
  0%  { transform: translateX(-4px); }
  100%{ transform: translateX(4px); }
}

/* ═══════════════════════════════════════
   UTILITY
═══════════════════════════════════════ */
.hidden { display: none !important; }
