* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: 'Impact', 'Arial Black', sans-serif;
  background: linear-gradient(135deg, #2c3e50, #16a085); /* Yeni Canlı Mor/Yeşil Geçişli Arka Plan */
  color: #fff;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 4px solid #f1c40f;
  position: relative;
}

header h1 {
  color: #f1c40f;
  text-shadow: 2px 2px 0 #000;
}

#leaderboard-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #f39c12;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #000;
}

.hidden { display: none !important; }

/* SEÇİM EKRANI GRİD DÜZENİ */
#selection-screen {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  color: #2c3e50;
  border: 4px solid #f1c40f;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 #000;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.card .name {
  font-size: 1.1rem;
  margin-top: 8px;
}

.card .counter-badge {
  font-size: 0.85rem;
  color: #c23616;
  background: #f5f6fa;
  margin-top: 5px;
  padding: 4px;
  border-radius: 6px;
  border: 2px solid #2c3e50;
}

/* TOKAT SAHNESİ */
#game-stage {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#back-btn {
  position: absolute;
  top: 20px; left: 20px;
  padding: 10px 18px;
  font-size: 1rem;
  font-family: inherit;
  background: #e74c3c;
  color: white;
  border: 3px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #000;
}

.score-board {
  margin-bottom: 15px;
}

.score-board h2 {
  font-size: 2.2rem;
  color: #f1c40f;
  text-shadow: 2px 2px 0 #000;
}

.score-board .stat {
  font-size: 1.4rem;
  color: #e74c3c;
  text-shadow: 1px 1px 0 #000;
}

.score-board .my-stat {
  font-size: 1.1rem;
  color: #2ecc71;
}

/* TARGET HEDEF ALANI */
#target-area {
  position: relative;
  width: 320px;
  height: 420px;
  cursor: crosshair;
  touch-action: none;
}

#character-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* KIZARMA OVERLAY EFEKTİ */
#blush-layer {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 35%;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.95) 0%, rgba(231, 76, 60, 0) 75%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* EL ANIMASYONU */
#slap-hand {
  position: absolute;
  font-size: 110px;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

/* UÇAN YAZILAR (PAT / GÜM) */
.hit-text {
  position: absolute;
  font-size: 2.5rem;
  font-weight: bold;
  color: #f1c40f;
  text-shadow: 3px 3px 0 #e74c3c, -2px -2px 0 #000;
  pointer-events: none;
  z-index: 30;
}

/* LİDERLİK TABLOSU MODAL */
#leaderboard-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: #2c3e50;
  border: 4px solid #f1c40f;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  color: #fff;
}

.modal-content h2 {
  color: #f1c40f;
  margin-bottom: 15px;
}

#leaderboard-list {
  list-style: none;
  text-align: left;
  margin-bottom: 15px;
}

#leaderboard-list li {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
}

.close-btn {
  padding: 8px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

/* FOOTER SOSYAL MEDYA BAR */
footer {
  background: rgba(0,0,0,0.6);
  padding: 12px;
  border-top: 2px solid #f1c40f;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  font-family: sans-serif;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.2s;
}

.social-btn:hover { transform: scale(1.05); }
.yt { background: #cd201f; }
.ig { background: #e1306c; }
.tt { background: #000; border-color: #25d366; }
.itemsatis { background: #ff9f43; }