/* Oyun ekranı stilleri */
.game-screen {
  position: relative; min-height: 100vh; overflow: hidden;
  padding-bottom: calc(60px + var(--safe-bottom));
}
.game-screen.city-bg {
  background: var(--city-bg-overlay);
}
.game-bg-layer {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--city-bg-image);
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  filter: saturate(1.12) hue-rotate(var(--city-hue, 0deg)) brightness(0.92);
}
.game-ui-layer {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column;
  backdrop-filter: blur(1px);
}
body.dark .game-header .hdr-btn,
body.dark .game-header .city-name { color: #fff; }
body.dark .game-stats { color: rgba(255,255,255,.85); }

.game-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 14px 8px;
}
.game-header .hdr-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.25); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  font-size: 18px; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.game-header .city-name {
  font-weight: 800; font-size: 1.1rem; letter-spacing: 2px; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.game-stats {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.92);
  padding: 0 10px 8px; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
#puzzle-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 8px 12px; min-height: 0;
}
#crossword-grid { display: grid; gap: 5px; }
.grid-cell {
  width: clamp(34px, 9vw, 44px); height: clamp(34px, 9vw, 44px);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: clamp(16px, 5vw, 22px); font-weight: 800;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: background .3s, transform .25s;
  border: 1px solid rgba(255,255,255,.5);
}.grid-cell.filled { background: var(--primary); color: #fff; animation: cellPop .3s ease; }
.grid-cell.hint-flash { background: #fef08a !important; color: #333 !important; }
.grid-cell.empty { background: rgba(255,255,255,.65); color: transparent; }
@keyframes cellPop { 0%{transform:scale(.7)} 60%{transform:scale(1.08)} 100%{transform:scale(1)} }

#word-preview-bar { text-align: center; padding: 4px 0 8px; min-height: 40px; }
#preview-word {
  display: inline-block; background: var(--primary); color: #fff;
  font-weight: 800; letter-spacing: 4px; padding: 7px 24px;
  border-radius: 50px; border: 2px solid rgba(255,255,255,.6);
  opacity: 0; transform: scale(.85); transition: opacity .12s, transform .12s;
  font-size: clamp(14px, 4vw, 18px);
}
#preview-word.visible { opacity: 1; transform: scale(1); }

#wheel-section {
  position: relative; flex-shrink: 0;
  height: clamp(270px, 42vh, 340px);
  display: flex; align-items: center; justify-content: center;
}
#wheel-stage {
  position: relative; width: min(78vw, 300px); height: min(78vw, 300px);
  touch-action: none;
}
#wheel-bg {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 30px rgba(0,0,0,.25), inset 0 0 0 3px rgba(255,255,255,.55);
}#wheel-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
#wheel-letters { position: absolute; inset: 0; z-index: 2; }

.letter-btn {
  position: absolute; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(13,148,136,.4);
  transition: transform .1s, box-shadow .1s;
  border: none; cursor: pointer;
}
.letter-btn.selected {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 3px #fff, 0 6px 20px rgba(0,0,0,.25);
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.wheel-tools {
  position: absolute; z-index: 5;
}
.wheel-tools button {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(50,50,50,.5); border: none; color: #fff;
  font-size: 18px; cursor: pointer;
}
#tool-shuffle { left: 0; top: 50%; transform: translateY(-50%); }
#tool-hint { right: 0; top: 18%; }
#tool-undo { left: 14%; bottom: 0; }

.game-ad-slot { padding: 8px 16px; }

/* Tutorial */
.tutorial-bubble {
  position: fixed; bottom: 45%; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 14px 20px;
  border-radius: 16px; font-size: .9rem; font-weight: 600;
  z-index: 500; max-width: 280px; text-align: center;
  animation: slideUp .4s ease;
}
.tutorial-bubble::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%); border: 8px solid transparent;
  border-top-color: var(--text);
}

/* Sonuç ekranı */
.result-stars { font-size: 2.5rem; margin: 12px 0; letter-spacing: 4px; }
.result-stats { text-align: left; background: var(--bg); border-radius: 12px; padding: 14px; margin: 12px 0; }

#game-banner-ad {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  height: 50px; background: #f5f5f5; border-top: 1px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #999;
}
