.board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0 16px;
}

.tile {
    perspective: 250px;
}

.tile-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease;
    transform-style: preserve-3d;
    font-size: 2rem;
    font-weight: 700;
}

.tile.filled {
    border-color: #565758;
    cursor: pointer;
}

.tile.filled:hover .tile-inner {
    opacity: 0.85;
}

.tile.flipping .tile-inner {
    transform: rotateX(90deg);
}

.input-section {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.legend {
    display: flex;
    gap: 20px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    color: #818384;
    letter-spacing: 0.03rem;
}

.legend-swatch {
    width: 13px;
    height: 13px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-swatch.state-absent {
    background-color: #3a3a3c;
}

.legend-swatch.state-present {
    background-color: #b59f3b;
}

.legend-swatch.state-correct {
    background-color: #538d4e;
}

.click-hint {
    font-size: 0.72rem;
    color: #565758;
    text-align: center;
    letter-spacing: 0.02rem;
}

.click-hint span {
    font-weight: 600;
}

.click-hint .color-present {
    color: #b59f3b;
}

.click-hint .color-correct {
    color: #538d4e;
}

#reset-button {
    background: none;
    border: 1px solid #3a3a3c;
    color: #565758;
    padding: 7px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#reset-button:hover {
    color: #ffffff;
    border-color: #818384;
}

.import-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 330px;
}

.import-divider {
    font-size: 0.68rem;
    color: #3a3a3c;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

#import-textarea {
    width: 100%;
    background-color: #1a1a1b;
    border: 1px solid #3a3a3c;
    color: #818384;
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.7;
    outline: none;
    border-radius: 4px;
    resize: none;
    font-family: monospace;
    transition: border-color 0.15s ease, color 0.15s ease;
}

#import-textarea::placeholder {
    color: #3a3a3c;
    font-family: monospace;
}

#import-textarea:focus {
    border-color: #565758;
    color: #ffffff;
}

#import-button {
    background-color: #2a2a2b;
    color: #818384;
    border: 1px solid #3a3a3c;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#import-button:hover {
    background-color: #3a3a3c;
    color: #ffffff;
    border-color: #565758;
}

.import-error {
    font-size: 0.72rem;
    color: #cf4d4d;
    height: 1rem;
    letter-spacing: 0.02rem;
    text-align: center;
}