/* 2048 SOVA - CSS Styles */

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ekran Yönetimi */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    transform: translateX(100%);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ana Menü Stilleri */
#main-menu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.main-content {
    text-align: center;
    padding: 20px;
    max-width: 400px;
    width: 90%;
}

.logo-container {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.studio-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.studio-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.game-title {
    font-size: 4rem;
    font-weight: bold;
    color: #faf8ef;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.studio-name {
    font-size: 2rem;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.studio-subtitle {
    font-size: 1rem;
    color: #faf8ef;
    opacity: 0.8;
    font-style: italic;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
    to { text-shadow: 2px 2px 20px rgba(255,215,0,0.5); }
}

.menu-buttons {
    margin-bottom: 30px;
}

.menu-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-btn.primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.menu-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.menu-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.menu-btn.secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.screen-shake {
    animation: screenShake 0.6s ease-in-out;
}

@keyframes screenShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

.high-score-display {
    color: #faf8ef;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Oyun Ekranı Stilleri */
#game-screen {
    background: linear-gradient(135deg, #faf8ef 0%, #f4f1e8 100%);
    flex-direction: column;
    padding: 10px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.back-button, .restart-button {
    background: #8f7a66;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.back-button:hover, .restart-button:hover {
    background: #9f8a76;
}

.score-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.score-box {
    background: #bbada0;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease-in-out;
}

.score-box.counting {
    animation: scoreCount 0.5s ease-out;
}

@keyframes scoreCount {
    0% {
        transform: scale(1);
        color: white;
    }
    50% {
        transform: scale(1.2);
        color: #f59563;
        background: #f4e4bc;
    }
    100% {
        transform: scale(1);
        color: white;
        background: #bbada0;
    }
}

.score-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.score-box span:last-child {
    font-size: 1.2rem;
    font-weight: bold;
}

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

.game-info {
    text-align: center;
    margin-bottom: 20px;
    color: #776e65;
}

.game-info p {
    color: #776e65;
    font-size: 1rem;
    margin-top: 10px;
}

.game-info p span {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Oyun Tahtası */
.game-board {
    background: #bbada0;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
}

.game-board::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(238, 228, 218, 0.35);
    border-radius: 6px;
    z-index: 1;
}

.game-tile {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 6px;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
    z-index: 2;
}

.game-tile-2 { background: #eee4da; color: #776e65; }
.game-tile-4 { background: #ede0c8; color: #776e65; }
.game-tile-8 { background: #f2b179; color: #f9f6f2; }
.game-tile-16 { background: #f59563; color: #f9f6f2; }
.game-tile-32 { background: #f67c5f; color: #f9f6f2; }
.game-tile-64 { background: #f65e3b; color: #f9f6f2; }
.game-tile-128 { background: #edcf72; color: #f9f6f2; font-size: 1.8rem; }
.game-tile-256 { background: #edcc61; color: #f9f6f2; font-size: 1.8rem; }
.game-tile-512 { background: #edc850; color: #f9f6f2; font-size: 1.8rem; }
.game-tile-1024 { background: #edc53f; color: #f9f6f2; font-size: 1.5rem; }
.game-tile-2048 { background: #edc22e; color: #f9f6f2; font-size: 1.5rem; }

.game-tile-super { 
    background: #3c3a32; 
    color: #f9f6f2; 
    font-size: 1.2rem; 
}

.tile.glow-tile {
    animation: tileGlow 2s ease-in-out infinite alternate;
}

@keyframes tileGlow {
    0% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Animasyonlar */
.game-tile.new {
    animation: tileAppear 0.2s ease-in-out;
}

.game-tile.merged {
    animation: tileMerge 0.2s ease-in-out;
}

@keyframes tileAppear {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes tileMerge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.game-controls {
    margin-top: 20px;
}

.control-btn {
    background: #8f7a66;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: #9f8a76;
}

/* Ayarlar Ekranı */
#settings-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.settings-content, .about-content {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
}

.settings-content h2, .about-content h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    color: white;
}

.setting-item label {
    font-size: 1.1rem;
    font-weight: bold;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-item select {
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 200px;
}

.setting-item select option {
    padding: 5px;
    font-size: 14px;
}

/* Dil seçici özel stili */
#language-select {
    font-size: 16px;
    padding: 10px 15px;
    min-width: 250px;
}

#language-select option {
    padding: 8px 12px;
    font-size: 15px;
}

/* Hakkında Ekranı */
.about-text {
    color: white;
    text-align: left;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.about-text h4 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    color: #ffd700;
}

.about-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-text li {
    margin: 5px 0;
    line-height: 1.4;
}

/* Hedef Ulaşma Ekranı */
#target-reached-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.target-reached-content {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
}

.target-reached-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    animation: targetGlow 1s ease-in-out infinite alternate;
}

@keyframes targetGlow {
    from { text-shadow: 0 0 10px rgba(255,215,0,0.5); }
    to { text-shadow: 0 0 20px rgba(255,215,0,0.8); }
}

.target-info {
    margin: 30px 0;
}

.reached-target-display {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    position: relative;
    display: inline-block;
    min-width: 120px;
}

.checkmark {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: checkmarkPulse 0.5s ease-in-out infinite alternate;
}

@keyframes checkmarkPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

#target-message {
    color: white;
    font-size: 1.2rem;
    margin: 20px 0;
    font-weight: bold;
}

#target-message span {
    color: #ffd700;
    font-size: 1.4rem;
}

.target-score {
    background: rgba(255,215,0,0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.target-score p {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.target-buttons {
    margin-top: 30px;
}

.target-buttons .menu-btn {
    margin: 10px 0;
}

/* Game Over Ekranı */
#game-over-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-over-content {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
}

.game-over-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-score {
    margin: 20px 0;
    color: white;
}

.final-score p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.new-record {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.3rem;
    animation: recordGlow 1s ease-in-out infinite alternate;
}

.new-record.hidden {
    display: none;
}

@keyframes recordGlow {
    from { text-shadow: 0 0 5px rgba(255,215,0,0.5); }
    to { text-shadow: 0 0 20px rgba(255,215,0,0.8); }
}

.game-over-buttons {
    margin-top: 30px;
}

.game-over-buttons .menu-btn {
    margin: 10px 0;
}

/* Tablet Optimizasyonu */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 20px;
    }
    
    .studio-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .game-title {
        font-size: 4rem;
        margin-bottom: 10px;
    }
    
    .studio-name {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .studio-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .menu-btn {
        font-size: 1.4rem;
        padding: 18px 36px;
        margin: 12px;
        min-width: 200px;
    }
    
    .game-board {
        width: 480px;
        height: 480px;
        margin: 20px auto;
        padding: 20px;
    }
    
    .tile {
        width: 100px;
        height: 100px;
        font-size: 2.2rem;
        line-height: 100px;
    }
    
    .score-box {
        font-size: 1.3rem;
        padding: 15px 25px;
        margin: 10px;
    }
    
    .control-btn {
        font-size: 1.2rem;
        padding: 15px 30px;
        margin: 10px;
    }
    
    .game-info {
        font-size: 1.1rem;
        margin: 15px 0;
    }
    
    .settings-content, .about-content {
        max-width: 600px;
        padding: 40px;
    }
    
    .settings-title, .about-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .settings-item, .about-item {
        font-size: 1.2rem;
        margin: 20px 0;
    }
    
    .toggle-switch {
        width: 60px;
        height: 30px;
    }
    
    .toggle-switch::before {
        width: 26px;
        height: 26px;
    }
    
    .toggle-switch:checked::before {
        transform: translateX(30px);
    }
}

/* Büyük Tablet Optimizasyonu */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 1200px;
        padding: 30px;
    }
    
    .studio-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 25px;
    }
    
    .game-title {
        font-size: 5rem;
        margin-bottom: 15px;
    }
    
    .studio-name {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .studio-subtitle {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }
    
    .menu-btn {
        font-size: 1.6rem;
        padding: 20px 40px;
        margin: 15px;
        min-width: 220px;
    }
    
    .game-board {
        width: 520px;
        height: 520px;
        margin: 25px auto;
        padding: 25px;
    }
    
    .tile {
        width: 110px;
        height: 110px;
        font-size: 2.4rem;
        line-height: 110px;
    }
    
    .score-box {
        font-size: 1.4rem;
        padding: 18px 30px;
        margin: 12px;
    }
    
    .control-btn {
        font-size: 1.3rem;
        padding: 18px 35px;
        margin: 12px;
    }
    
    .game-info {
        font-size: 1.2rem;
        margin: 18px 0;
    }
    
    .settings-content, .about-content {
        max-width: 700px;
        padding: 50px;
    }
    
    .settings-title, .about-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }
    
    .settings-item, .about-item {
        font-size: 1.3rem;
        margin: 25px 0;
    }
    
    .toggle-switch {
        width: 70px;
        height: 35px;
    }
    
    .toggle-switch::before {
        width: 31px;
        height: 31px;
    }
    
    .toggle-switch:checked::before {
        transform: translateX(35px);
    }
}

/* Mobil Optimizasyon - Telefon */
@media (max-width: 480px) {
    .studio-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .game-title {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .studio-name {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .studio-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 15px;
        max-width: 100%;
    }
    
    .menu-buttons {
        gap: 12px;
    }
    
    .menu-btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px; /* iOS touch target minimum */
    }
    
    .game-board {
        width: 300px;
        height: 300px;
        margin: 15px auto;
    }
    
    .game-tile {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        font-weight: bold;
    }
    
    .game-tile-2, .game-tile-4 {
        font-size: 1.8rem;
    }
    
    .game-tile-8, .game-tile-16 {
        font-size: 1.6rem;
    }
    
    .game-tile-32, .game-tile-64 {
        font-size: 1.4rem;
    }
    
    .game-tile-128, .game-tile-256, .game-tile-512 {
        font-size: 1.2rem;
    }
    
    .game-tile-1024, .game-tile-2048 {
        font-size: 1rem;
    }
    
    .score-box {
        padding: 8px 12px;
        margin: 5px;
    }
    
    .score-label {
        font-size: 0.8rem;
    }
    
    .score-value {
        font-size: 1.2rem;
    }
    
    .game-info {
        margin: 10px 0;
    }
    
    .game-info p {
        font-size: 0.9rem;
    }
    
    .game-info p span {
        font-size: 1rem;
    }
    
    .control-buttons {
        margin: 15px 0;
        gap: 10px;
    }
    
    .back-button, .restart-button {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .game-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .score-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* Çok Küçük Ekranlar - Küçük Telefonlar */
@media (max-width: 360px) {
    .studio-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }
    
    .game-title {
        font-size: 2rem;
        margin-bottom: 6px;
    }
    
    .studio-name {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .studio-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .menu-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .game-board {
        width: 280px;
        height: 280px;
        margin: 10px auto;
    }
    
    .game-tile {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .game-tile-2, .game-tile-4 {
        font-size: 1.6rem;
    }
    
    .game-tile-8, .game-tile-16 {
        font-size: 1.4rem;
    }
    
    .game-tile-32, .game-tile-64 {
        font-size: 1.2rem;
    }
    
    .game-tile-128, .game-tile-256, .game-tile-512 {
        font-size: 1rem;
    }
    
    .game-tile-1024, .game-tile-2048 {
        font-size: 0.9rem;
    }
    
    .score-box {
        padding: 6px 10px;
        margin: 3px;
    }
    
    .score-label {
        font-size: 0.7rem;
    }
    
    .score-value {
        font-size: 1rem;
    }
    
    .game-info p {
        font-size: 0.8rem;
    }
    
    .game-info p span {
        font-size: 0.9rem;
    }
    
    .back-button, .restart-button {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 44px;
    }
}

/* Tablet Optimizasyonu - iPad ve Android Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
    .studio-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 25px;
    }
    
    .game-title {
        font-size: 4.5rem;
        margin-bottom: 15px;
    }
    
    .studio-name {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .studio-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .main-content {
        padding: 30px;
        max-width: 600px;
    }
    
    .menu-buttons {
        gap: 20px;
    }
    
    .menu-btn {
        padding: 16px 32px;
        font-size: 1.2rem;
        min-height: 56px; /* Tablet touch target */
    }
    
    .game-board {
        width: 400px;
        height: 400px;
        margin: 20px auto;
    }
    
    .game-tile {
        width: 85px;
        height: 85px;
        font-size: 2.2rem;
        font-weight: bold;
    }
    
    .game-tile-2, .game-tile-4 {
        font-size: 2.2rem;
    }
    
    .game-tile-8, .game-tile-16 {
        font-size: 2rem;
    }
    
    .game-tile-32, .game-tile-64 {
        font-size: 1.8rem;
    }
    
    .game-tile-128, .game-tile-256, .game-tile-512 {
        font-size: 1.6rem;
    }
    
    .game-tile-1024, .game-tile-2048 {
        font-size: 1.4rem;
    }
    
    .score-box {
        padding: 12px 20px;
        margin: 8px;
    }
    
    .score-label {
        font-size: 1rem;
    }
    
    .score-value {
        font-size: 1.6rem;
    }
    
    .game-info {
        margin: 20px 0;
    }
    
    .game-info p {
        font-size: 1.2rem;
    }
    
    .game-info p span {
        font-size: 1.4rem;
    }
    
    .control-buttons {
        margin: 20px 0;
        gap: 15px;
    }
    
    .back-button, .restart-button {
        padding: 12px 24px;
        font-size: 1.1rem;
        min-height: 56px;
    }
    
    .game-header {
        gap: 20px;
    }
    
    .score-container {
        gap: 15px;
    }
}

/* Büyük Tablet ve Küçük Desktop */
@media (min-width: 1025px) and (max-width: 1366px) {
    .studio-logo {
        width: 160px;
        height: 160px;
        margin-bottom: 30px;
    }
    
    .game-title {
        font-size: 5rem;
        margin-bottom: 20px;
    }
    
    .studio-name {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .main-content {
        padding: 40px;
        max-width: 700px;
    }
    
    .menu-buttons {
        gap: 25px;
    }
    
    .menu-btn {
        padding: 18px 36px;
        font-size: 1.3rem;
        min-height: 60px;
    }
    
    .game-board {
        width: 450px;
        height: 450px;
        margin: 25px auto;
    }
    
    .game-tile {
        width: 95px;
        height: 95px;
        font-size: 2.4rem;
        font-weight: bold;
    }
    
    .game-tile-2, .game-tile-4 {
        font-size: 2.4rem;
    }
    
    .game-tile-8, .game-tile-16 {
        font-size: 2.2rem;
    }
    
    .game-tile-32, .game-tile-64 {
        font-size: 2rem;
    }
    
    .game-tile-128, .game-tile-256, .game-tile-512 {
        font-size: 1.8rem;
    }
    
    .game-tile-1024, .game-tile-2048 {
        font-size: 1.6rem;
    }
    
    .score-box {
        padding: 15px 25px;
        margin: 10px;
    }
    
    .score-label {
        font-size: 1.1rem;
    }
    
    .score-value {
        font-size: 1.8rem;
    }
    
    .game-info {
        margin: 25px 0;
    }
    
    .game-info p {
        font-size: 1.3rem;
    }
    
    .game-info p span {
        font-size: 1.5rem;
    }
    
    .control-buttons {
        margin: 25px 0;
        gap: 20px;
    }
    
    .back-button, .restart-button {
        padding: 15px 30px;
        font-size: 1.2rem;
        min-height: 60px;
    }
    
    .game-header {
        gap: 25px;
    }
    
    .score-container {
        gap: 20px;
    }
}

/* Touch Optimizasyonu */
@media (hover: none) and (pointer: coarse) {
    .menu-btn:hover, .control-btn:hover, .back-button:hover, .restart-button:hover {
        transform: none;
    }
    
    .menu-btn:active, .control-btn:active, .back-button:active, .restart-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .game-tile:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .studio-logo:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Touch feedback için haptic feedback simülasyonu */
    .menu-btn, .control-btn, .back-button, .restart-button, .game-tile {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Yatay Mod Optimizasyonu */
@media (orientation: landscape) and (max-height: 500px) {
    .main-content {
        padding: 10px;
    }
    
    .logo-container {
        margin-bottom: 20px;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .studio-name {
        font-size: 1.2rem;
    }
    
    .menu-buttons {
        margin-bottom: 15px;
    }
    
    .menu-btn {
        padding: 10px 15px;
        margin: 5px 0;
    }
}
