/* ===== ORTAK STILLER ===== */

/* Font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Anasayfaya Don Butonu */
.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin-bottom: 16px;
  min-height: 36px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  background: #f0f0f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.back-to-home:hover {
  background: #e0e0e0;
  color: #555;
}

.back-to-home:active {
  background: #d0d0d0;
  transform: scale(0.97);
}

@media (max-width: 500px) {
  .back-to-home {
    padding: 6px 12px;
    font-size: 0.82rem;
    margin-bottom: 12px;
  }
}

/* ===== ORTAK SKOR HUD ===== */
.score-display {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 18px 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border: 2px solid rgba(255,255,255,0.1);
  min-width: 70px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.15s;
  white-space: nowrap;
}

.score-display .score-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}

.score-display .score-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  transition: color 0.2s;
}

/* Pop animasyonu */
.score-display.score-pop {
  animation: scorePop 0.4s ease;
  border-color: rgba(241, 196, 15, 0.7);
  box-shadow: 0 0 16px rgba(241, 196, 15, 0.4);
}

.score-display.score-pop .score-value {
  color: #f1c40f;
}

.score-display.score-lose {
  animation: scoreLose 0.35s ease;
  border-color: rgba(231, 76, 60, 0.6);
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.3);
}

.score-display.score-lose .score-value {
  color: #e74c3c;
}

@keyframes scorePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes scoreLose {
  0% { transform: scale(1); }
  30% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Ucan puan yazisi */
.score-float {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 800;
  pointer-events: none;
  animation: scoreFloatUp 0.9s ease-out forwards;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  z-index: 10;
}

@keyframes scoreFloatUp {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-32px); }
}

@media (max-width: 500px) {
  .score-display {
    padding: 3px 12px 5px;
    min-width: 56px;
  }
  .score-display .score-value {
    font-size: 1.15rem;
  }
}
