/* === Crossword 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);
}

.crossword-layout {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.crossword-grid {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(34, 211, 238, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.06), inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.cross-cell {
    width: clamp(32px, 7vw, 42px);
    height: clamp(32px, 7vw, 42px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-cell input {
    width: 100%;
    height: 100%;
    border: none;
    background: linear-gradient(145deg, rgba(18, 16, 42, 0.9), rgba(10, 8, 25, 0.9));
    color: var(--text-primary);
    text-align: center;
    font-size: clamp(14px, 3vw, 18px);
    font-weight: var(--weight-bold);
    font-family: var(--font-mono);
    text-transform: uppercase;
    outline: none;
    caret-color: var(--accent-cyan);
}

.cross-cell input:focus {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.cross-cell--black {
    background: #0a0a1a;
}

.cross-cell--black input {
    display: none;
}

.cross-cell__num {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 8px;
    color: var(--text-muted);
    font-weight: var(--weight-medium);
    pointer-events: none;
    z-index: 1;
}

.cross-cell--correct input {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.cross-cell--wrong input {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
}

.cross-cell--highlight input {
    background: rgba(34, 211, 238, 0.1);
}

.clues-panel {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.clues-section {
    margin-bottom: var(--space-4);
}

.clues-section h3 {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--accent-cyan);
    margin-bottom: var(--space-2);
}

.clue-item {
    padding: var(--space-1) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.clue-item:hover {
    color: var(--text-primary);
}

.clue-item--active {
    color: var(--accent-primary-bright);
    font-weight: var(--weight-semibold);
}

.game-actions {
    display: flex;
    gap: var(--space-3);
}

.message {
    min-height: 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    text-align: center;
}

@media (max-width:600px) {
    .crossword-layout {
        flex-direction: column;
        align-items: center;
    }

    .clues-panel {
        min-width: auto;
        max-width: 100%;
    }
}