/* === Scrabble Styles === */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    min-height: calc(100vh - var(--nav-height));
    padding-top: calc(var(--nav-height) + var(--space-8));
}

.game-header {
    text-align: center;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
}

.difficulty-buttons {
    display: flex;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px;
}

.difficulty-btn {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

.difficulty-btn:hover {
    color: var(--text-primary);
}

.difficulty-btn--active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.score-bar {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-3) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--weight-black);
    color: var(--accent-cyan);
}

.tile-rack {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
}

.scrabble-tile {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: var(--weight-black);
    font-family: var(--font-display);
    text-transform: uppercase;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid rgba(218, 165, 32, 0.3);
    background: linear-gradient(135deg, #2a2518, #1f1a10);
    color: #f5deb3;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.scrabble-tile:hover:not(.scrabble-tile--used) {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.2);
    border-color: rgba(218, 165, 32, 0.6);
}

.scrabble-tile--used {
    opacity: 0.25;
    cursor: default;
}

.scrabble-tile__points {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    font-weight: var(--weight-bold);
    color: rgba(218, 165, 32, 0.7);
}

.word-area {
    display: flex;
    gap: 4px;
    min-height: 52px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    min-width: 300px;
    justify-content: center;
    flex-wrap: wrap;
}

.word-tile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: var(--weight-black);
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(218, 165, 32, 0.1));
    color: #f5deb3;
    border-radius: var(--radius-md);
    border: 1px solid rgba(218, 165, 32, 0.3);
    animation: tileDrop 0.2s ease-out;
    cursor: pointer;
    position: relative;
}

.word-tile:hover {
    opacity: 0.8;
}

.word-tile__pts {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 8px;
    color: rgba(218, 165, 32, 0.6);
}

@keyframes tileDrop {
    0% {
        transform: translateY(-20px);
        opacity: 0
    }

    100% {
        transform: translateY(0);
        opacity: 1
    }
}

.game-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.message {
    min-height: 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--accent-cyan);
    text-align: center;
}

.words-history {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
}

.history-tag {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    background: rgba(218, 165, 32, 0.1);
    color: #f5deb3;
    border: 1px solid rgba(218, 165, 32, 0.2);
    font-family: var(--font-mono);
}