@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&family=Fredoka:wght@400;600;700&display=swap');

html {
    /* Responsive zoom - küçük ekranlarda ölçekle */
    font-size: clamp(10px, 1.8vw, 16px);
    /* Zoom değişikliklerine otomatik yanıt ver */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Ultra küçük mobil cihazlar (< 360px) */
@media (max-width: 360px) {
    html {
        font-size: clamp(9px, 1.8vw, 11px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    height: 100vh;
    padding-top: 60px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    /* Zoom ile responsivitesi için margin/padding düzelt */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Sayfa scrollbar'ını gizle ama dikey scroll'a izin ver */
html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* Zoom sırasında smooth transition */
    transition: font-size 0.1s ease-out;
}

/* Modal'lar için scroll izni */
.modal-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar Stili - Temaya Uygun */
/* Chrome, Edge ve Safari için */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

/* Firefox için */
* {
    scrollbar-color: #667eea rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Arka Plan Harfler */
.background-letters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-letter {
    position: absolute;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    /* Slightly increased opacity so background letters are visible on varied gradients */
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    animation: floatLetter linear infinite;
}

@keyframes floatLetter {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Üst Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #121928;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    padding: 0 clamp(6px, 2vw, 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    height: clamp(20px, 4vh, 25px);
}

.room-title-header {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: clamp(0.5px, 0.5vw, 1px);
    white-space: nowrap;
    max-width: clamp(200px, 50vw, 400px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: clamp(0.2px, 0.5vw, 0.5px);
    word-break: break-word;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: clamp(6px, 1.5vw, 15px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Başlık */
.title {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.5rem, 7vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 
        3px 3px 0 rgba(255, 107, 53, 0.8),
        -1px -1px 0 rgba(138, 43, 226, 0.6);
    margin-bottom: clamp(10px, 2vh, 40px);
    letter-spacing: clamp(1px, 0.8vw, 6px);
    animation: titleFloat 3s ease-in-out infinite;
    word-break: break-word;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Harf Kartları */
.cards-container {
    display: flex;
    justify-content: center;
    gap: clamp(2px, 0.6vw, 12px);
    margin-bottom: clamp(0.2vh, 0.3vh, 0.5vh);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.card {
    background: white;
    width: clamp(42px, 5.2vw, 90px);
    height: clamp(58px, 9.5vh, 150px);
    border-radius: clamp(8px, 1vw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4.5vh, 4rem);
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.card:hover:not(.hidden) {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card:active:not(.hidden) {
    transform: translateY(-2px) scale(1.02);
}

.card.vowel {
    color: #ff6b35;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE8C1 100%);
    border: 3px solid #ff9966;
}

.card.consonant {
    color: #6a5acd;
    background: linear-gradient(135deg, #F0E6FF 0%, #E6D5F0 100%);
    border: 3px solid #9b8fdc;
}

.card.hidden {
    color: #999;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 3px solid #ccc;
    cursor: default;
}

/* Zamanlayıcı Bölümü */
.timer-section {
    background: linear-gradient(135deg, #FF6B9D 0%, #C06C84 100%);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(192, 108, 132, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.time {
    font-size: 6rem;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    text-align: center;
}

.timer-labels {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-bottom: 20px;
}

.label {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-transform: capitalize;
}

/* Kontrol Butonları */
.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-btn:hover:not(:disabled) {
    transform: scale(1.12);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-btn {
    background: linear-gradient(135deg, #00D084 0%, #00A67E 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.play-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 208, 132, 0.4);
}

.pause-btn {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.pause-btn:hover {
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.stop-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    font-weight: 700;
    border: none;
}

.stop-btn:hover {
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.search-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    font-size: 1.8rem;
    border: none;
    font-weight: 700;
}

.search-btn:hover {
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.4);
}

.settings-btn {
    background: linear-gradient(135deg, #667eea 0%, #5568d3 100%);
    color: white;
    font-size: 1.8rem;
    border: none;
    font-weight: 700;
}

.settings-btn:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Ayarlar Modal */
.settings-modal {
    max-width: 500px;
}

.settings-content {
    padding: 20px 0;
}

.setting-item {
    margin-bottom: 30px;
}

.setting-item label {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.time-inputs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.time-input-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-input-box label {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-bottom: 0;
}

.time-separator {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    padding: 0 10px;
}

.time-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.time-btn {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    font-weight: bold;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-btn:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.time-input-group input {
    width: 80px;
    padding: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid #667eea;
    border-radius: 12px;
    text-align: center;
    color: #667eea;
}

.time-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    background: #f0f0f0;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.preset-btn.active {
    background: #667eea;
    color: white;
}

.save-settings-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.save-settings-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.save-settings-btn:active {
    transform: translateY(0);
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 6% auto;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 22px;
    top: 22px;
    font-size: 2.2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.close:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1) rotate(90deg);
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 2rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Duraklatma Modal (Kapatılamaz) */
.pause-modal {
    max-width: 500px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.pause-modal .pause-icon {
    font-size: 6rem;
    margin: 20px 0;
    animation: pauseIconPulse 2s ease-in-out infinite;
}

.pause-modal h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 2px;
}

.pause-modal p {
    font-size: 1.2rem;
    margin: 10px 0;
    opacity: 0.95;
}

.pause-animation {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pause-animation .pulse {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulsate 1.5s ease-in-out infinite;
}

@keyframes pauseIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes pulsate {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Kelime Arama Modal */
.search-modal {
    max-width: 500px;
}

.search-content {
    padding: 20px 0;
}

.search-content .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-content .input-group input {
    flex: 1;
    padding: 16px 22px;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    border: 3px solid #667eea;
    border-radius: 14px;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.search-content .input-group input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* İ harfi düzeltmesi */
.search-content .input-group input::placeholder {
    text-transform: none;
    font-weight: normal;
    color: #999;
}

.modal-result {
    min-height: 70px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 22px 25px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-result.valid {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 3px solid #28a745;
    animation: successPulse 0.5s ease;
}

.modal-result.invalid {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 3px solid #dc3545;
    animation: errorShake 0.4s ease;
}

.modal-result.checking {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 3px solid #17a2b8;
    animation: infoPulse 1.5s ease infinite;
}

@keyframes successPulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes infoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Süre Bitti Modal */
.time-up-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

.time-up-content {
    max-width: 700px;
    text-align: center;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    border: 5px solid #BDC3C7;
    border-radius: 20px;
    padding: 40px;
}

.time-up-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.time-up-content h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.time-up-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 500;
}

.time-up-letters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
}

.time-up-letters .card {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.time-up-letters .card.vowel {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.time-up-letters .card.consonant {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
}

.time-up-search {
    margin: 20px 0;
}

.time-up-search .input-group {
    margin-bottom: 15px;
}

.time-up-search input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #2C3E50;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.time-up-search input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.time-up-result {
    min-height: 30px;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px;
    border-radius: 6px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.time-up-result.valid {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
}

.time-up-result.invalid {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    border: 2px solid #dc3545;
}

.time-up-result.checking {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.time-up-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.time-up-buttons button {
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-new-game {
    background: white;
    color: #C06C84;
}

.btn-new-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Confirm Modal */
.confirm-modal {
    max-width: 500px;
    text-align: center;
}

.confirm-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.confirm-modal h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.confirm-modal p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-confirm-yes {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
}

.btn-confirm-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
}

.btn-confirm-no {
    background: linear-gradient(135deg, #00D084 0%, #00A67E 100%);
    color: white;
}

.btn-confirm-no:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .game-screen {
        height: calc(100vh - 60px);
        padding: clamp(0.3vh, 0.4vh, 0.8vh) clamp(0.3vw, 0.6vw, 1vw);
    }
    
    .room-title-header {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        max-width: clamp(150px, 40vw, 250px);
    }
    
    .nav-title {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        letter-spacing: clamp(0.5px, 0.8vw, 1px);
    }
    
    .title {
        font-size: clamp(1.8rem, 7vw, 2.9rem);
        margin-bottom: clamp(20px, 2.5vh, 35px);
        letter-spacing: clamp(1px, 0.8vw, 3px);
    }

    .card {
        width: clamp(45px, 7vw, 78px);
        height: clamp(63px, 13vh, 130px);
        font-size: clamp(1.8rem, 4.8vh, 3.5rem);
    }

    .cards-container {
        gap: clamp(2px, 0.6vw, 8px);
        margin-bottom: clamp(0.2vh, 0.3vh, 0.5vh);
    }

    .time {
        font-size: clamp(2.5rem, 5vh, 4rem);
        min-width: clamp(70px, 15vw, 100px);
    }

    .label {
        font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .timer-labels {
        gap: clamp(30px, 10vw, 60px);
    }

    .control-btn {
        width: clamp(40px, 8vw, 50px);
        height: clamp(40px, 8vw, 50px);
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
    
    .settings-btn {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .logo {
        height: clamp(18px, 4vh, 20px);
    }

    .words-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: clamp(6px, 1vw, 10px);
    }
    
    .modal-content {
        width: 90%;
        padding: clamp(12px, 2vw, 20px);
    }
    
    .corner-logo {
        width: min(12vw, 80px);
        height: min(12vw, 80px);
    }
}

@media (max-width: 480px) {
    .game-screen {
        height: calc(100vh - 60px);
        padding: clamp(0.2vh, 0.3vh, 0.5vh) clamp(0.2vw, 0.4vw, 0.8vw);
    }
    
    .nav-content {
        padding: 0 clamp(6px, 1.5vw, 15px);
    }
    
    .logo {
        height: clamp(18px, 4vh, 28px);
    }
    
    .nav-title {
        font-size: clamp(0.75rem, 2vw, 0.9rem);
    }
    
    .room-title-header {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
        max-width: clamp(120px, 35vw, 180px);
    }
    
    .title {
        font-size: clamp(1.2rem, 5.5vw, 2rem);
        margin-bottom: clamp(8px, 1.5vh, 20px);
        letter-spacing: clamp(0.5px, 0.8vw, 2px);
    }

    .card {
        width: clamp(36px, 8.5vw, 65px);
        height: clamp(50px, 10vh, 105px);
        font-size: clamp(1.2rem, 3.5vh, 2.8rem);
        border-radius: clamp(6px, 0.8vw, 8px);
    }

    .cards-container {
        gap: clamp(1px, 0.5vw, 6px);
        margin-bottom: clamp(0.1vh, 0.2vh, 0.3vh);
    }
    
    .time {
        font-size: clamp(2rem, 4.5vh, 3rem);
        min-width: clamp(60px, 12vw, 80px);
    }

    .timer-labels {
        gap: clamp(25px, 8vw, 40px);
    }
    
    .control-btn {
        width: clamp(36px, 7vw, 45px);
        height: clamp(36px, 7vw, 45px);
        font-size: clamp(0.85rem, 1.8vw, 1rem);
    }
    
    .time-input-group input {
        width: clamp(80px, 20vw, 100px);
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .time-btn {
        width: clamp(34px, 6.5vw, 40px);
        height: clamp(34px, 6.5vw, 40px);
        font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    }
    
    .corner-logo {
        width: min(14vw, 60px);
        height: min(14vw, 60px);
    }
    
    .selected-letter-card {
        width: clamp(30px, 6vw, 50px);
        height: clamp(30px, 5.5vh, 50px);
        font-size: clamp(0.9rem, 2.2vh, 1.8rem);
    }

    .word-building-area {
        padding: clamp(6px, 1vw, 12px);
    }

    .word-building-area h3 {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: clamp(4px, 0.8vh, 8px);
    }

    .selected-letters {
        min-height: clamp(24px, 4.5vh, 40px);
        padding: clamp(4px, 0.8vw, 8px);
    }

    .btn-submit, .btn-undo, .btn-clear {
        padding: clamp(6px, 1vw, 10px);
        font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    }

    .modal-content {
        width: 90%;
        max-width: calc(100vw - 20px);
        padding: clamp(10px, 1.5vw, 20px);
    }

    .modal-content h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .steps-indicator {
        gap: clamp(2px, 0.5vw, 4px);
        margin-bottom: clamp(8px, 1.5vh, 15px);
    }

    .step {
        font-size: clamp(0.7rem, 1.5vw, 0.85rem);
        padding: clamp(6px, 1vw, 8px);
    }
}

/* Çok küçük mobil cihazlar (< 340px) - Agresif Skalama */
@media (max-width: 340px) {
    html {
        font-size: 9px;
    }

    body {
        padding-top: 50px;
    }

    .top-nav {
        height: 50px;
    }

    .game-screen {
        height: calc(100vh - 50px);
        padding: clamp(0.15vh, 0.25vh, 0.3vh) clamp(0.15vw, 0.3vw, 0.5vw);
    }

    .nav-content {
        padding: 0 clamp(4px, 1vw, 8px);
    }

    .title {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
        margin-bottom: clamp(8px, 1.2vh, 12px);
        letter-spacing: clamp(0.3px, 0.5vw, 1px);
    }

    .card {
        width: clamp(34px, 8vw, 56px);
        height: clamp(48px, 9.5vh, 95px);
        font-size: clamp(1rem, 3.2vh, 2.2rem);
        border-radius: clamp(5px, 0.7vw, 7px);
    }

    .cards-container {
        gap: clamp(0.5px, 0.4vw, 3px);
        margin-bottom: clamp(0.1vh, 0.15vh, 0.2vh);
    }

    .time {
        font-size: clamp(1.6rem, 4vh, 2.4rem);
        min-width: clamp(50px, 10vw, 70px);
    }

    .timer-labels {
        gap: clamp(15px, 5vw, 30px);
    }

    .control-btn {
        width: clamp(32px, 6.5vw, 40px);
        height: clamp(32px, 6.5vw, 40px);
        font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    }

    .selected-letter-card {
        width: clamp(26px, 5.5vw, 40px);
        height: clamp(26px, 5vh, 40px);
        font-size: clamp(0.8rem, 2vh, 1.4rem);
    }

    .word-building-area {
        padding: clamp(4px, 0.8vw, 8px);
    }

    .word-building-area h3 {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
        margin-bottom: clamp(2px, 0.5vh, 4px);
    }

    .selected-letters {
        min-height: clamp(20px, 4vh, 32px);
        padding: clamp(2px, 0.6vw, 4px);
    }

    .btn-submit, .btn-undo, .btn-clear {
        padding: clamp(4px, 0.8vw, 6px);
        font-size: clamp(0.7rem, 1.5vw, 0.85rem);
        min-width: clamp(60px, 15vw, 90px);
    }

    .modal-content {
        width: 88%;
        max-width: calc(100vw - 15px);
        padding: clamp(8px, 1.2vw, 15px);
    }

    .modal-content h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }

    .corner-logo {
        width: min(12vw, 48px);
        height: min(12vw, 48px);
    }

    .room-title-header {
        font-size: clamp(0.65rem, 1.6vw, 0.75rem);
        max-width: clamp(100px, 30vw, 150px);
    }

    .nav-title {
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    }

    .logo {
        height: clamp(16px, 3.5vh, 22px);
    }

    .time-input-group input {
        width: clamp(70px, 18vw, 90px);
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .time-btn {
        width: clamp(30px, 6vw, 36px);
        height: clamp(30px, 6vw, 36px);
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .corner-logo {
        width: min(14vw, 60px);
        height: min(14vw, 60px);
    }
    
    .selected-letter-card {
        width: clamp(30px, 6vw, 50px);
        height: clamp(30px, 5.5vh, 50px);
        font-size: clamp(0.9rem, 2.2vh, 1.8rem);
    }

    .word-building-area {
        padding: clamp(6px, 1vw, 12px);
    }

    .word-building-area h3 {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: clamp(4px, 0.8vh, 8px);
    }

    .selected-letters {
        min-height: clamp(24px, 4.5vh, 40px);
        padding: clamp(4px, 0.8vw, 8px);
    }

    .btn-submit, .btn-undo, .btn-clear {
        padding: clamp(6px, 1vw, 10px);
        font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    }

    .modal-content {
        width: 90%;
        max-width: calc(100vw - 20px);
        padding: clamp(10px, 1.5vw, 20px);
    }

    .modal-content h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .steps-indicator {
        gap: clamp(2px, 0.5vw, 4px);
        margin-bottom: clamp(8px, 1.5vh, 15px);
    }

    .step {
        font-size: clamp(0.7rem, 1.5vw, 0.85rem);
        padding: clamp(6px, 1vw, 8px);
    }
}

/* Çok küçük mobil cihazlar (< 340px) - Agresif Skalama */
@media (max-width: 340px) {
    html {
        font-size: 9px;
    }

    body {
        padding-top: 50px;
    }

    .top-nav {
        height: 50px;
    }

    .game-screen {
        height: calc(100vh - 50px);
        padding: clamp(0.15vh, 0.25vh, 0.3vh) clamp(0.15vw, 0.3vw, 0.5vw);
    }

    .nav-content {
        padding: 0 clamp(4px, 1vw, 8px);
    }

    .title {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
        margin-bottom: clamp(8px, 1.2vh, 12px);
        letter-spacing: clamp(0.3px, 0.5vw, 1px);
    }

    .card {
        width: clamp(34px, 8vw, 56px);
        height: clamp(48px, 9.5vh, 95px);
        font-size: clamp(1rem, 3.2vh, 2.2rem);
        border-radius: clamp(5px, 0.7vw, 7px);
    }

    .cards-container {
        gap: clamp(0.5px, 0.4vw, 3px);
        margin-bottom: clamp(0.1vh, 0.15vh, 0.2vh);
    }

    .time {
        font-size: clamp(1.6rem, 4vh, 2.4rem);
        min-width: clamp(50px, 10vw, 70px);
    }

    .timer-labels {
        gap: clamp(15px, 5vw, 30px);
    }

    .control-btn {
        width: clamp(32px, 6.5vw, 40px);
        height: clamp(32px, 6.5vw, 40px);
        font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    }
    
    .settings-btn {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .logo {
        height: clamp(18px, 4vh, 20px);
    }

    .words-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: clamp(6px, 1vw, 10px);
    }
    
    .modal-content {
        width: 90%;
        padding: clamp(12px, 2vw, 20px);
    }
    
    .corner-logo {
        width: min(12vw, 80px);
        height: min(12vw, 80px);
    }
}

@media (max-width: 480px) {
    .game-screen {
        height: calc(100vh - 60px);
        padding: clamp(0.2vh, 0.3vh, 0.5vh) clamp(0.2vw, 0.4vw, 0.8vw);
    }
    
    .nav-content {
        padding: 0 clamp(6px, 1.5vw, 15px);
    }
    
    .logo {
        height: clamp(18px, 4vh, 28px);
    }
    
    .nav-title {
        font-size: clamp(0.75rem, 2vw, 0.9rem);
    }
    
    .room-title-header {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
        max-width: clamp(120px, 35vw, 180px);
    }
    
    .title {
        font-size: clamp(1.2rem, 5.5vw, 2rem);
        margin-bottom: clamp(8px, 1.5vh, 20px);
        letter-spacing: clamp(0.5px, 0.8vw, 2px);
    }

    .card {
        width: clamp(36px, 8.5vw, 65px);
        height: clamp(50px, 10vh, 105px);
        font-size: clamp(1.2rem, 3.5vh, 2.8rem);
        border-radius: clamp(6px, 0.8vw, 8px);
    }

    .cards-container {
        gap: clamp(1px, 0.5vw, 6px);
        margin-bottom: clamp(0.1vh, 0.2vh, 0.3vh);
    }
    
    .time {
        font-size: clamp(2rem, 4.5vh, 3rem);
        min-width: clamp(60px, 12vw, 80px);
    }

    .timer-labels {
        gap: clamp(25px, 8vw, 40px);
    }
    
    .control-btn {
        width: clamp(36px, 7vw, 45px);
        height: clamp(36px, 7vw, 45px);
        font-size: clamp(0.85rem, 1.8vw, 1rem);
    }
    
    .time-input-group input {
        width: clamp(80px, 20vw, 100px);
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .time-btn {
        width: clamp(34px, 6.5vw, 40px);
        height: clamp(34px, 6.5vw, 40px);
        font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    }
    
    .corner-logo {
        width: min(14vw, 60px);
        height: min(14vw, 60px);
    }
    
    .selected-letter-card {
        width: clamp(30px, 6vw, 50px);
        height: clamp(30px, 5.5vh, 50px);
        font-size: clamp(0.9rem, 2.2vh, 1.8rem);
    }

    .word-building-area {
        padding: clamp(6px, 1vw, 12px);
    }

    .word-building-area h3 {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: clamp(4px, 0.8vh, 8px);
    }

    .selected-letters {
        min-height: clamp(24px, 4.5vh, 40px);
        padding: clamp(4px, 0.8vw, 8px);
    }

    .btn-submit, .btn-undo, .btn-clear {
        padding: clamp(6px, 1vw, 10px);
        font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    }

    .modal-content {
        width: 90%;
        max-width: calc(100vw - 20px);
        padding: clamp(10px, 1.5vw, 20px);
    }

    .modal-content h2 {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .steps-indicator {
        gap: clamp(2px, 0.5vw, 4px);
        margin-bottom: clamp(8px, 1.5vh, 15px);
    }

    .step {
        font-size: clamp(0.7rem, 1.5vw, 0.85rem);
        padding: clamp(6px, 1vw, 8px);
    }
}

/* Çok küçük mobil cihazlar (< 340px) - Agresif Skalama */
@media (max-width: 340px) {
    html {
        font-size: 9px;
    }

    body {
        padding-top: 50px;
    }

    .top-nav {
        height: 50px;
    }

    .game-screen {
        height: calc(100vh - 50px);
        padding: clamp(0.15vh, 0.25vh, 0.3vh) clamp(0.15vw, 0.3vw, 0.5vw);
    }

    .nav-content {
        padding: 0 clamp(4px, 1vw, 8px);
    }

    .title {
        font-size: clamp(1.3rem, 5.5vw, 1.8rem);
        margin-bottom: clamp(8px, 1.2vh, 12px);
        letter-spacing: clamp(0.3px, 0.5vw, 1px);
    }

    .card {
        width: clamp(34px, 8vw, 56px);
        height: clamp(48px, 9.5vh, 95px);
        font-size: clamp(1rem, 3.2vh, 2.2rem);
        border-radius: clamp(5px, 0.7vw, 7px);
    }

    .cards-container {
        gap: clamp(0.5px, 0.4vw, 3px);
        margin-bottom: clamp(0.1vh, 0.15vh, 0.2vh);
    }

    .time {
        font-size: clamp(1.6rem, 4vh, 2.4rem);
        min-width: clamp(50px, 10vw, 70px);
    }

    .timer-labels {
        gap: clamp(15px, 5vw, 30px);
    }

    .control-btn {
        width: clamp(32px, 6.5vw, 40px);
        height: clamp(32px, 6.5vw, 40px);
        font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    }
    
    .settings-btn {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .logo {
        height: clamp(18px, 4vh, 20px);
    }

    .words-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: clamp(6px, 1vw, 10px);
    }
    
    .modal-content {
        width: 90%;
        padding: clamp(12px, 2vw, 20px);
    }
    
    .corner-logo {
        width: min(12vw, 80px);
        height: min(12vw, 80px);
    }
}

/* ============================================ */
/* PERFORMANS OPTİMİZASYONLARI */
/* ============================================ */

/* Düşük performanslı cihazlar ve mobil için optimizasyonlar */
@media (max-width: 768px) {
    /* Ağır efektleri devre dışı bırak (Blur efekti mobil cihazları çok yorar) */
    .room-code-display,
    .participant-name-display,
    .timer-display-large,
    .word-building-area,
    .fullscreen-btn,
    .toast,
    .modal-content,
    .game-results-screen {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Arka planları daha opak yap (blur olmadığı için okunabilirlik artsın) */
    .word-building-area {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .timer-display-large {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 50%, rgba(240, 147, 251, 0.95) 100%) !important;
    }
    
    .room-code-display,
    .participant-name-display {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)) !important;
    }
    
    /* Gölgeleri basitleştir */
    .card, .menu-btn, .btn-submit, .btn-undo, .btn-clear, .selected-letter-card {
        box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    }
    
    .card:hover:not(.hidden) {
        box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    }
}

/* Çok büyük ekranlar için optimizasyon */
@media (min-width: 1920px) {
    .game-screen {
        max-width: 1600px;
    }
    
    .card {
        width: min(7vw, 110px);
        height: min(11vh, 150px);
    }
    
    .timer-display-large {
        font-size: min(5vh, 3.5rem);
    }
    
    .game-header .title {
        font-size: min(4vh, 3rem);
    }
}

/* Landscape orientation için özel düzenlemeler */
@media (orientation: landscape) and (max-height: 600px) {
    .game-header .title {
        font-size: clamp(1rem, 3vh, 1.8rem);
        margin: 0.3vh 0;
    }
    
    .timer-display-large {
        font-size: clamp(1.2rem, 3.5vh, 2rem);
    }
    
    .card {
        width: clamp(45px, 6.5vw, 68px);
        height: clamp(65px, 15vh, 120px);
        font-size: clamp(1.8rem, 4.5vh, 3.2rem);
    }
    
    .word-building-area {
        padding: 0.8vh 1vw;
    }
    
    .word-building-area h3 {
        font-size: clamp(0.8rem, 1.8vh, 1rem);
        margin-bottom: 0.5vh;
    }
    
    .selected-letters {
        min-height: clamp(30px, 5vh, 45px);
    }
    
    .corner-logo {
        width: min(8vw, 70px);
        height: min(8vw, 70px);
    }
}

/* ============================================ */
/* ANA MENÜ STİLLERİ */
/* ============================================ */

.main-menu {
    text-align: center;
    padding: 60px 20px;
}

/* Oyun ekranı başlangıçta gizli */
.game-screen {
    display: none;
    position: relative;
    padding: clamp(0.3vh, 0.5vh, 1vh) clamp(0.3vw, 0.8vw, 1vw);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 60px); /* Header yüksekliğini çıkar */
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    justify-content: space-evenly;
    box-sizing: border-box;
    display: flex;
    gap: clamp(0.3vh, 0.5vh, 1vh);
}

/* Köşe Logoları */
.corner-logos {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.corner-logo {
    position: absolute;
    width: min(10vw, 100px);
    height: min(10vw, 100px);
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.corner-logo.left-logo {
    left: 1vw;
    top: 0;
}

.corner-logo.right-logo {
    right: 1vw;
    top: 0;
}

.corner-logo:hover {
    opacity: 1;
}

/* Oyun Başlığı */
.game-header {
    text-align: center;
    margin-bottom: 0.5vh;
    flex-shrink: 0;
}

.game-header .title {
    font-size: clamp(1.2rem, 3vh, 2.5rem);
    margin: 0.5vh 0;
}

.room-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    margin-top: 0.8vh;
    flex-wrap: wrap;
}

.room-code-display,
.participant-name-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    padding: 0.5vh 1.3vw;
    border-radius: 18px;
    font-size: clamp(0.75rem, 1.6vh, 1.05rem);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.room-code-display strong,
.participant-name-display strong {
    color: #ffed4e;
    font-weight: 800;
    letter-spacing: 1px;
}

.scoreboard-link {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 8px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoreboard-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.35);
}

/* Oyun Zamanlayıcısı (Büyük) */
.game-timer {
    text-align: center;
    margin: clamp(1vh, 1.5vh, 2vh) 0 clamp(0.8vh, 1vh, 1.5vh) 0;
    flex-shrink: 0;
    perspective: 1000px;
}

.timer-display-large {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(2rem, 5vh, 4.5rem);
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 50%, rgba(240, 147, 251, 0.25) 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: clamp(1.5vh, 2vh, 2.5vh) clamp(2vw, 3vw, 4vw);
    letter-spacing: clamp(4px, 1.2vw, 16px);
    font-variant-numeric: tabular-nums;
    text-shadow: 
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(118, 75, 162, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 8px 32px rgba(102, 126, 234, 0.25),
        0 0 60px rgba(240, 147, 251, 0.1);
    backdrop-filter: blur(15px);
    animation: timerGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.timer-display-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes timerGlow {
    0%, 100% { 
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 8px 32px rgba(102, 126, 234, 0.25),
            0 0 60px rgba(240, 147, 251, 0.1);
    }
    50% { 
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 12px 40px rgba(102, 126, 234, 0.4),
            0 0 80px rgba(240, 147, 251, 0.2);
    }
}

.timer-status {
    font-size: clamp(1rem, 2.5vh, 1.6rem);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.2vh;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Kelime Oluşturma Alanı */
.word-building-area {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: clamp(0.6vh, 0.8vh, 1.3vh) clamp(0.8vw, 1vw, 1.3vw);
    margin-top: clamp(0.3vh, 0.5vh, 0.7vh);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.word-building-area h3 {
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(0.85rem, 1.8vh, 1.4rem);
    margin-bottom: clamp(0.4vh, 0.6vh, 1vh);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.8vw, 1px);
    font-weight: 700;
}

.selected-letters {
    min-height: clamp(45px, 7vh, 75px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
    border-radius: 12px;
    padding: clamp(0.6vh, 0.8vh, 1.2vh) clamp(0.8vw, 1vw, 1.2vw);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(4px, 0.8vw, 12px);
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(0.5vh, 0.8vh, 1.2vh);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.selected-letters .placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: clamp(0.7rem, 1.4vh, 1.05rem);
    font-weight: 600;
}

.selected-letter-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 2.8vh, 2.3rem);
    font-weight: 700;
    width: clamp(42px, 5.8vw, 68px);
    height: clamp(42px, 5.8vh, 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: letterPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

@keyframes letterPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.word-actions {
    display: flex;
    gap: clamp(4px, 0.8vw, 14px);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.secondary-actions {
    display: flex;
    gap: clamp(4px, 0.8vw, 14px);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.btn-undo,
.btn-clear,
.btn-submit {
    padding: clamp(6px, 1vh, 12px) clamp(12px, 1.8vw, 28px);
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.7rem, 1.4vh, 1.05rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-undo {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 800;
}

.btn-undo:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.3);
}

.btn-clear {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    font-weight: 800;
}

.btn-clear:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(250, 112, 154, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
    font-size: clamp(0.85rem, 1.8vh, 1.1rem);
    padding: clamp(10px, 1.7vh, 14px) clamp(22px, 2.8vw, 35px);
    font-weight: 800;
    min-width: clamp(90px, 20vw, 120px);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 22px rgba(51, 8, 103, 0.35);
}

.btn-undo:disabled,
.btn-clear:disabled,
.btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: scale(0.98);
}

.word-result {
    margin-top: 1vh;
    min-height: clamp(25px, 4vh, 40px);
    text-align: center;
    font-size: clamp(0.8rem, 1.8vh, 1.1rem);
    font-weight: 700;
    padding: clamp(10px, 1.5vh, 18px);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    opacity: 1;
    visibility: visible;
}

.word-result.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 3px solid #28a745;
    display: block !important;
}

.word-result.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 3px solid #dc3545;
    display: block !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
}

/* Oyun Durumu Mesajları */
.game-status-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: clamp(25px, 4vh, 50px) clamp(35px, 5vw, 70px);
    border-radius: 20px;
    font-size: clamp(1rem, 2.5vh, 1.8rem);
    font-weight: 700;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Harf kartları (oyuncu için) */
.card {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.card.used {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(0.9);
}

.card:not(.used):hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.menu-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.menu-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 45px 70px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}

.menu-btn:hover {
    transform: translateY(-12px) scale(1.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.menu-btn:active {
    transform: translateY(-4px) scale(1.02);
}

.menu-btn .btn-icon {
    font-size: 4.5rem;
    animation: buttonIconFloat 2s ease-in-out infinite;
}

.menu-btn:hover .btn-icon {
    animation-duration: 1s;
}

@keyframes buttonIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.menu-btn .btn-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.create-room-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.create-room-btn:hover {
    box-shadow: 0 18px 45px rgba(245, 87, 108, 0.35), 0 8px 20px rgba(245, 87, 108, 0.2);
}

.join-room-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.join-room-btn:hover {
    box-shadow: 0 18px 45px rgba(79, 172, 254, 0.35), 0 8px 20px rgba(0, 242, 254, 0.2);
}

/* ============================================ */
/* MODAL STİLLERİ - ODA OLUŞTURMA */
/* ============================================ */

.create-room-modal,
.join-room-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ddd;
    z-index: 0;
}

.step {
    background: #f0f0f0;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #888;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed {
    background: #4CAF50;
    color: white;
}

.step-content {
    padding: 30px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

.duration-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-top: 15px;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.participant-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.participant-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.participant-input input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-remove-participant {
    background: #f44336;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-participant:hover:not(:disabled) {
    background: #d32f2f;
    transform: rotate(90deg);
}

.btn-remove-participant:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-add-participant {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-participant:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Toplu katılımcı ekleme butonları */
.btn-toggle-bulk {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-toggle-bulk:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.bulk-participant-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.bulk-participant-textarea:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-apply-bulk {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-apply-bulk:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.image-uploads {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.image-upload-box {
    text-align: center;
}

.image-upload-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.image-upload-box input[type="file"] {
    display: none;
}

.image-preview {
    width: 150px;
    height: 150px;
    border: 3px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #f9f9f9;
}

.image-preview:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-placeholder {
    font-size: 3rem;
    color: #ccc;
}

.step-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-back,
.btn-next {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background: #f0f0f0;
    color: #666;
}

.btn-back:hover {
    background: #e0e0e0;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.room-created-success {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.room-created-success h3 {
    font-size: 1.8rem;
    color: #4CAF50;
    margin-bottom: 30px;
}

.room-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.code-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 3px;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.btn-copy:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.warning-text {
    color: #ff9800;
    font-weight: 600;
    margin: 20px 0;
}

.btn-admin-panel {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* ============================================ */
/* MODAL STİLLERİ - ODAYA KATIL */
/* ============================================ */

.room-code-entry,
.participant-selection {
    padding: 20px 0;
}

.room-code-entry input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    transition: border-color 0.3s ease;
}

.room-code-entry input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

.participant-selection h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.participant-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.participant-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.participant-btn:hover:not(.eliminated):not(.connected) {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

.participant-btn.eliminated {
    background: #ccc;
    color: #666;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

.participant-btn.connected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
    border: 2px solid #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-btn {
        min-width: 100%;
    }
    
    .image-uploads {
        flex-direction: column;
    }
    
    .participant-buttons {
        grid-template-columns: 1fr;
    }
}

/* Oyun Sonuç Ekranı */
.game-results-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: resultsScreenFadeIn 0.4s ease;
}

@keyframes resultsScreenFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

/* Oyun bitince göster */
.game-results-screen.show {
    display: flex;
}

.results-container {
    background: white;
    border-radius: 35px;
    padding: 55px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    animation: resultsSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultsSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-results-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.35);
    font-weight: 700;
}

.close-results-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.close-results-btn:active {
    transform: scale(1.05);
}

.results-container h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    letter-spacing: 2px;
    text-shadow: none;
    font-weight: 900;
}

.results-table {
    margin: 35px 0;
}

.results-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 18px 15px;
    text-align: center;
    border: none;
}

.results-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-table td {
    font-size: 1.15rem;
    font-weight: 600;
}

.results-table .rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    font-weight: 900;
    font-size: 1.6rem !important;
    color: #333;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.results-table .rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    font-weight: 800;
    color: #333;
}

.results-table .rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    font-weight: 800;
    color: #fff;
}

.countdown-message {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 18px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.countdown-message p {
    font-size: 1.25rem;
    color: #667eea;
    margin: 8px 0;
    font-weight: 700;
}

.countdown-message strong {
    font-size: 1.7rem;
    color: #764ba2;
    font-weight: 900;
}

/* Tam Ekran Butonu */
.fullscreen-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

/* ============================================ */
/* MODERN TOAST NOTIFICATION SISTEMI */
/* ============================================ */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 420px;
}

.toast {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-width: 280px;
    transition: all 0.3s ease;
}

.toast:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.16);
}

.toast.toast-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.toast-error {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.toast-warning {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.toast-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast.toast-copy {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.toast-message {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 600;
}

.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.toast-close:active {
    transform: scale(0.95);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 14px 14px;
    animation: toastProgressBar 4s linear forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(420px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(420px);
        opacity: 0;
    }
}

@keyframes toastProgressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@media (max-width: 600px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 70px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* 800x500 ve altı küçük ekranlar için agresif scaling */
@media (max-width: 800px) and (max-height: 500px) {
    html {
        font-size: clamp(9px, 1.3vw, 12px);
    }

    body {
        padding-top: 45px;
    }

    .top-nav {
        height: 45px;
    }

    .game-screen {
        height: calc(100vh - 45px);
        padding: clamp(0.1vh, 0.25vh, 0.4vh) clamp(0.2vw, 0.4vw, 0.8vw);
        overflow-y: auto;
        overflow-x: hidden;
        gap: clamp(0.2vh, 0.4vh, 0.6vh);
    }

    .title {
        font-size: clamp(1.3rem, 5.5vw, 1.6rem);
        margin-bottom: clamp(8px, 1.2vh, 12px);
        font-weight: 700;
    }

    .card {
        width: clamp(32px, 7.5vw, 52px);
        height: clamp(42px, 7.5vh, 68px);
        font-size: clamp(1.5rem, 4.7vh, 2.7rem);
    }

    .cards-container {
        gap: clamp(1px, 0.4vw, 3px);
        margin-bottom: clamp(0.1vh, 0.15vh, 0.2vh);
    }

    .time {
        font-size: clamp(1.4rem, 4vh, 2.2rem);
        min-width: clamp(50px, 10vw, 65px);
    }

    .timer-labels {
        gap: clamp(12px, 3.5vw, 25px);
    }

    .control-btn {
        width: clamp(30px, 6vw, 38px);
        height: clamp(30px, 6vw, 38px);
        font-size: clamp(0.65rem, 1.4vw, 0.8rem);
    }

    .selected-letter-card {
        width: clamp(28px, 5.5vw, 42px);
        height: clamp(28px, 5vh, 42px);
        font-size: clamp(0.8rem, 2vh, 1.3rem);
    }

    .word-building-area {
        padding: clamp(4px, 0.7vw, 8px);
        margin-top: clamp(0.3vh, 0.5vh, 0.8vh);
    }

    .word-building-area h3 {
        font-size: clamp(0.7rem, 1.4vw, 0.85rem);
        margin-bottom: clamp(1px, 0.2vh, 2px);
        font-weight: 700;
    }

    .selected-letters {
        min-height: clamp(40px, 6vh, 55px);
        padding: clamp(3px, 0.6vw, 6px);
        gap: clamp(3px, 0.6vw, 8px);
    }

    .btn-undo,
    .btn-clear,
    .btn-submit {
        padding: clamp(6px, 1vh, 10px) clamp(12px, 2vw, 18px);
        font-size: clamp(0.75rem, 1.6vw, 0.95rem);
        font-weight: 700;
        border-radius: 8px;
        min-width: clamp(65px, 16vw, 85px);
    }

    .btn-submit {
        padding: clamp(8px, 1.3vh, 12px) clamp(16px, 2.5vw, 22px);
        font-size: clamp(0.8rem, 1.7vw, 1rem);
        min-width: clamp(75px, 18vw, 95px);
    }

    .word-actions {
        gap: clamp(3px, 0.6vw, 8px);
    }

    .secondary-actions {
        gap: clamp(3px, 0.6vw, 8px);
    }

    .modal-content {
        width: 92%;
        max-width: calc(100vw - 12px);
        padding: clamp(8px, 1.2vw, 12px);
    }

    .modal-content h2 {
        font-size: clamp(1.05rem, 3.2vw, 1.3rem);
        margin-bottom: clamp(8px, 1.2vh, 12px);
    }

    .room-title-header {
        font-size: clamp(0.65rem, 1.5vw, 0.8rem);
        max-width: clamp(90px, 28vw, 130px);
    }

    .nav-title {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
        font-weight: 600;
    }

    .logo {
        height: clamp(15px, 3.2vh, 20px);
    }

    .corner-logo {
        width: min(10vw, 45px);
        height: min(10vw, 45px);
    }

    .menu-buttons {
        gap: clamp(8px, 1.5vw, 12px);
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-new-game,
    .btn-join-game {
        padding: clamp(8px, 1.3vh, 12px) clamp(16px, 2.5vw, 24px);
        font-size: clamp(0.8rem, 1.7vw, 1rem);
        min-width: clamp(80px, 20vw, 110px);
        font-weight: 700;
    }

    .toast-container {
        top: 50px;
        right: 8px;
        left: 8px;
        max-width: none;
        pointer-events: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(10px, 1.5vh, 14px) clamp(12px, 1.8vw, 16px);
        margin-bottom: clamp(6px, 0.8vh, 10px);
        font-size: clamp(0.75rem, 1.3vw, 0.9rem);
        border-radius: clamp(8px, 1vw, 10px);
    }
}

/* 986x594 ve benzeri dar ekranlar için */
@media (max-width: 1024px) and (max-height: 600px) {
    body {
        padding-top: 55px;
    }

    .top-nav {
        height: 55px;
    }

    .game-screen {
        height: calc(100vh - 55px);
        padding: clamp(0.1vh, 0.2vh, 0.35vh) clamp(0.2vw, 0.3vw, 0.6vw);
        gap: clamp(0.15vh, 0.25vh, 0.4vh);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        margin-bottom: clamp(6px, 0.8vh, 10px);
    }

    .card {
        width: clamp(38px, 7vw, 72px);
        height: clamp(82px, 9vh, 110px);
        font-size: clamp(1.5rem, 4.7vh, 2.7rem);
    }

    .selected-letters {
        min-height: clamp(38px, 5.5vh, 50px);
        padding: clamp(2px, 0.5vw, 4px);
    }

    .word-building-area {
        padding: clamp(3px, 0.6vw, 6px);
        margin-top: clamp(0.2vh, 0.3vh, 0.6vh);
    }

    .word-building-area h3 {
        font-size: clamp(0.7rem, 1.4vw, 0.85rem);
        margin-bottom: clamp(1px, 0.2vh, 2px);
        font-weight: 700;
    }

    .btn-undo,
    .btn-clear,
    .btn-submit {
        padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1.6vw, 14px);
        font-size: clamp(0.65rem, 1.2vw, 0.8rem);
        min-width: clamp(55px, 12vw, 75px);
    }

    .btn-submit {
        padding: clamp(8px, 2vh, 15px) clamp(15px, 4vw, 20px);
        font-size: clamp(0.7rem, 1.3vw, 0.85rem);
        min-width: clamp(65px, 14vw, 85px);
    }

    .toast-container {
        top: 58px;
        right: 6px;
        left: 6px;
        max-width: none;
        pointer-events: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(8px, 1.1vh, 11px) clamp(10px, 1.4vw, 13px);
        margin-bottom: clamp(5px, 0.6vh, 8px);
        font-size: clamp(0.7rem, 1.2vw, 0.85rem);
        border-radius: clamp(6px, 0.8vw, 8px);
    }
}