/* ===== Sekme (Pong + Güç) - Neon Arcade Estetiği ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --you: #38bdf8;
    --you-deep: #0284c7;
    --ai: #fb7185;
    --ai-deep: #e11d48;
    --gold: #fbbf24;
    --green-ok: #4ade80;
    --board-bg: #08111f;
    --ink: #040a14;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(56,189,248,0.12) 0%, transparent 42%),
        radial-gradient(circle at 85% 0%, rgba(251,113,133,0.12) 0%, transparent 42%),
        linear-gradient(160deg, #0c1626 0%, #060c16 100%);
    min-height: 100vh; color: #fff; padding: 0 14px 40px; overflow-x: hidden;
}

.game-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #0c1626 0%, #11203a 100%);
    padding: 15px 20px; display: flex; justify-content: center; align-items: center;
    z-index: 10000; box-shadow: 0 2px 18px rgba(0,0,0,0.5); border-bottom: 2px solid var(--you);
}
.header-logo {
    font-size: 1.7rem; color: var(--you); letter-spacing: 4px; text-decoration: none; font-weight: 900;
    text-shadow: 0 0 12px var(--you-deep), 0 0 24px rgba(56,189,248,0.4); transition: transform .3s;
}
.header-logo:hover { transform: scale(1.05); }

.game-container { max-width: 460px; margin: 0 auto; }

/* Skor tahtası */
.duel-board { display: flex; align-items: stretch; gap: 10px; margin-bottom: 16px; }
.player-side {
    flex: 1; background: rgba(0,0,0,0.3); border-radius: 16px; padding: 12px; text-align: center;
    border: 2px solid rgba(255,255,255,0.12);
}
.player-side.you { border-color: var(--you); box-shadow: 0 0 16px rgba(56,189,248,0.2); }
.player-side.ai { border-color: var(--ai); box-shadow: 0 0 16px rgba(251,113,133,0.2); }
.side-label { font-size: 0.82rem; opacity: 0.9; margin-bottom: 4px; }
.side-score { font-size: 2.6rem; font-weight: 900; }
.you .side-score { color: var(--you); }
.ai .side-score { color: var(--ai); }
.side-score.pop { animation: pop .4s ease; }
@keyframes pop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

.duel-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 110px; }
.level-badge { font-size: 0.9rem; font-weight: 800; color: var(--gold); }
.difficulty-tag { font-size: 0.78rem; padding: 3px 10px; border-radius: 12px; background: rgba(74,222,128,0.15); color: var(--green-ok); font-weight: 700; }
.target-info { font-size: 0.72rem; opacity: 0.7; text-align: center; }
.target-info span { color: var(--gold); font-weight: 700; }

.board-wrap { position: relative; margin-bottom: 14px; }
#board {
    width: 100%; height: auto; display: block; background: var(--board-bg);
    border-radius: 14px; border: 3px solid rgba(56,189,248,0.3);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6), 0 0 20px rgba(56,189,248,0.12);
    touch-action: none; cursor: pointer;
}

.overlay-layer {
    position: absolute; inset: 0; border-radius: 14px;
    background: rgba(6,12,22,0.92); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 10;
}
.overlay-layer.show { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.ov-content { text-align: center; padding: 24px; }
.ov-title { font-size: 2rem; font-weight: 900; color: var(--you); margin-bottom: 12px; text-shadow: 0 0 14px rgba(56,189,248,0.5); }
.ov-text { font-size: 1rem; margin-bottom: 14px; opacity: 0.92; line-height: 1.5; }

.btn-primary {
    margin-top: 6px; padding: 14px 36px; border: none; border-radius: 50px; cursor: pointer;
    font-size: 1.1rem; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, var(--you), var(--you-deep));
    box-shadow: 0 5px 0 #075985; transition: transform .1s;
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 #075985; }

.power-status { text-align: center; min-height: 28px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 700; }
.power-status .chip { display: inline-block; padding: 4px 12px; margin: 0 4px; border-radius: 20px; background: rgba(255,255,255,0.1); }

.game-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
    padding: 12px 20px; border: 2px solid rgba(255,255,255,0.22); border-radius: 12px;
    background: rgba(255,255,255,0.07); color: #fff; cursor: pointer; font-size: 0.92rem;
    font-weight: 600; transition: background .2s, transform .12s;
}
.btn:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.best-score { text-align: center; opacity: 0.85; font-size: 0.92rem; }
.best-score span { color: var(--gold); font-weight: 800; }

.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; z-index: 20000; padding: 20px;
}
.overlay.show { display: flex; }
.menu-card {
    background: linear-gradient(160deg, #11203a, #060c16); border: 3px solid var(--you);
    border-radius: 22px; padding: 32px 26px; max-width: 440px; width: 100%; text-align: center;
    box-shadow: 0 0 40px rgba(56,189,248,0.25); max-height: 90vh; overflow-y: auto;
}
.menu-card h1 { font-size: 2.2rem; color: var(--you); text-shadow: 0 0 14px rgba(56,189,248,0.5); }
.info-block { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; margin: 14px 0; text-align: left; }
.info-block.strategy { background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3); }
.info-block h3 { color: var(--you); margin-bottom: 8px; }
.info-text div { line-height: 1.9; color: rgba(255,255,255,0.92); }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 19000; overflow: hidden; }
.confetti { position: absolute; width: 10px; height: 14px; top: -20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.2; } }

.seo-content {
    max-width: 800px; margin: 40px auto 0; padding: 30px;
    background: rgba(0,0,0,0.3); border-radius: 15px; line-height: 1.8; border: 1px solid rgba(56,189,248,0.2);
}
.seo-content h2 { color: var(--you); margin-bottom: 18px; }
.seo-content h3 { color: var(--gold); margin: 22px 0 12px; }
.seo-content ul { padding-left: 22px; }
.seo-content li { margin-bottom: 6px; }

@media (max-width: 480px) {
    .side-score { font-size: 2.1rem; }
    .duel-mid { min-width: 92px; }
}
