/* Kule Oyunu Stilleri */
.tower-game-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #0b0f12;
    border: 2px solid rgba(255, 255, 255, 0.15);
    touch-action: none;
    user-select: none;
}

#game-canvas {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* UI Katmanı */
.ui-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* HUD ve Skor Barı */
.hud-stats-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 10px;
    z-index: 20;
    pointer-events: none;
}

.hud-stat-box {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
}

.hud-stat-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-stat-label.label-sky { color: #38bdf8; }
.hud-stat-label.label-pink { color: #f472b6; }

.hud-stat-val {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.hud-stat-val.text-sky { color: #38bdf8; }
.hud-stat-val.text-pink { color: #f472b6; }

.hud-top-bar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 25;
    pointer-events: auto;
}

.hud-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.tutorial-badge {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 20;
    white-space: nowrap;
    animation: pulseSlow 2s infinite;
}

@keyframes pulseSlow {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Modallar & Ekran Overlay */
.screen-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 30;
    pointer-events: auto;
    box-sizing: border-box;
}

.game-modal {
    background: linear-gradient(145deg, #1e272e, #141c22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

.game-icon-badge {
    font-size: 40px;
    line-height: 1;
}

.game-modal-title {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.game-modal-subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.game-score-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.score-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.score-val {
    color: #0fbcf9;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.score-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

.game-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-game {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-game:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-game:active {
    transform: translateY(0);
}

.btn-game-primary {
    background: linear-gradient(135deg, #0fbcf9, #0984e3) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 188, 249, 0.4);
}

.btn-game-danger {
    background: rgba(235, 77, 75, 0.15) !important;
    color: #ff7979 !important;
    border: 1px solid rgba(235, 77, 75, 0.3) !important;
}

.btn-game-danger:hover {
    background: rgba(235, 77, 75, 0.25) !important;
    color: #ff5252 !important;
}
