/* Game area */
.game-area {
    padding: 0.75rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Stats - Style barre de progression macOS */
.game-stats {
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    min-width: 70px;
    font-weight: 500;
}

.stat-label .material-icons {
    font-size: 16px;
    color: #ff9500;
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #34c759, #30d158);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #34c759;
    min-width: 45px;
    text-align: right;
}

/* Square section - Carte style macOS */
.square-section {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.square-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 1rem 0;
}

.square-section h3 .material-icons {
    color: #ff9500;
    font-size: 20px;
}

.square-wrapper {
    display: flex;
    justify-content: center;
}

/* Grille Hamming - Style boutons macOS */
.hamming-grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 8px;
}

.bit-cell {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s ease;
    inset: 0 1px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bit-cell:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.2);
    border-color: rgba(0, 255, 65, 0.4);
}

.bit-cell:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bit-cell.correct {
    // background: linear-gradient(180deg, #c8e6c9 0%, #a5d6a7 100%);
    border-color: #34c759;
    color: #1b5e20;
}

.bit-cell.wrong {
    border-color: #ff3b30;
    color: #b71c1c;
}

/* Feedback - messages de correction */
.feedback-section {
    margin-top: 1rem;
}

.feedback-content {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.feedback-content.success {
    background: rgba(52, 199, 89, 0.10);
    border: 1px solid rgba(52, 199, 89, 0.25);
    color: #1f7a33;
}

.feedback-content.error {
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.22);
    color: #b10012;
}

.feedback-content.complete {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.22), rgba(255, 204, 0, 0.16));
    border: 1px solid rgba(255, 204, 0, 0.7);
    color: #ffe923;
}

.feedback-content .highlight-name {
    font-weight: 700;
    text-decoration: underline;
}

.feedback-content .highlight-key {
    font-weight: 700;
    font-family: 'SF Mono', ui-monospace, monospace;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}