/* Karma Kelime Oyunu Stilleri */
.anagram-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.anagram-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.best-score-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #7c2d12;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0fbcf9;
}

.letters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.letter-box {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.letter-box:hover {
    transform: scale(1.08);
}

.input-container {
    max-width: 420px;
    margin: 1.5rem auto;
}

.game-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-radius: 12px;
    font-size: 1.15rem;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.game-input:focus {
    border-color: #ffd700;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.game-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #0fbcf9 0%, #0984e3 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    color: white;
}

.message-box {
    text-align: center;
    padding: 10px 16px;
    border-radius: 12px;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-success {
    background: rgba(46, 125, 50, 0.3);
    border: 1px solid #2e7d32;
    color: #81c784;
}

.message-error {
    background: rgba(198, 40, 40, 0.3);
    border: 1px solid #c62828;
    color: #ef9a9a;
}

.message-info {
    background: rgba(13, 71, 161, 0.3);
    border: 1px solid #1976d2;
    color: #90caf9;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.shake {
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
