* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0c0b10;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-header h1 {
    font-size: 24px;
    letter-spacing: 4px;
    color: #ff2222;
    text-shadow: 2px 2px #550000, 0 0 10px rgba(255, 34, 34, 0.4);
    margin-bottom: 5px;
}

.game-header .subtitle {
    font-size: 12px;
    color: #888899;
    letter-spacing: 1px;
}

.canvas-container {
    position: relative;
    background-color: #000000;
    border: 4px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

canvas#gameCanvas {
    display: block;
    width: 640px;
    height: 480px;
    background-color: #000000;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Mobil / Dokunmatik Kontroller */
.touch-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    background: rgba(15, 15, 20, 0.9);
    border-top: 2px solid #333;
}

.d-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d-pad-middle {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.t-btn {
    background: #222233;
    color: #ffffff;
    border: 2px solid #555577;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 14px;
    cursor: pointer;
    touch-action: manipulation;
}

.t-btn:active {
    background: #ff2222;
    border-color: #ffffff;
}

.btn-z {
    background: #1b3820;
    border-color: #44aa55;
}

.btn-x {
    background: #3a2020;
    border-color: #aa4444;
}

@media (max-width: 700px) {
    canvas#gameCanvas {
        width: 100%;
        height: auto;
        max-width: 100vw;
    }
    .touch-controls {
        display: flex;
    }
}

/* Alt Bilgi Kartları */
.game-instructions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .game-instructions {
        grid-template-columns: 1fr;
    }
}

.controls-card, .info-card {
    background: #121118;
    border: 1px solid #2a2838;
    border-radius: 6px;
    padding: 15px;
}

.controls-card h3, .info-card h3 {
    font-size: 14px;
    color: #ffcc00;
    margin-bottom: 10px;
    letter-spacing: 1px;
    border-bottom: 1px dashed #333344;
    padding-bottom: 5px;
}

.controls-card ul, .info-card ul {
    list-style: none;
    font-size: 12px;
    line-height: 1.6;
    color: #ccccdd;
}

.controls-card li, .info-card li {
    margin-bottom: 6px;
}

kbd {
    background: #252433;
    border: 1px solid #444360;
    border-bottom: 2px solid #444360;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 11px;
    color: #ffffff;
    font-weight: bold;
}
