.ttt6-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    background: #fff;
    max-width: 540px;
}

.ttt6-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ttt6-level-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
}

.ttt6-level {
    font-weight: 700;
    color: #0f172a;
}

.ttt6-level-desc {
    color: #475569;
    font-size: 13px;
}

.ttt6-score {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.ttt6-score strong {
    font-size: 16px;
}

.ttt6-controls button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.ttt6-controls button:hover {
    background: #1d4ed8;
}

.ttt6-controls .ttt6-hint {
    background: #0ea5e9;
}

.ttt6-controls .ttt6-hint:hover {
    background: #0284c7;
}

.ttt6-status {
    margin: 8px 0 12px;
    font-weight: 600;
    color: #0f172a;
}

.ttt6-progress {
    font-size: 13px;
    color: #0f172a;
}

.ttt6-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.ttt6-cell {
    aspect-ratio: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    position: relative;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.ttt6-cell:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.ttt6-cell:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.ttt6-cell .ttt6-mark {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 1;
    display: grid;
    place-items: center;
}

.ttt6-cell.ttt6-highlight::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 3px solid #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
    pointer-events: none;
    animation: ttt6-pulse 0.8s ease;
}

.ttt6-cell.ttt6-hint {
    box-shadow: 0 0 0 2px #0ea5e9 inset;
}

@keyframes ttt6-pulse {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.04); }
}

.ttt6-wrapper .ttt6-message-win {
    color: #15803d;
}

.ttt6-wrapper .ttt6-message-loss {
    color: #b91c1c;
}

.ttt6-footer {
    margin-top: 12px;
    font-size: 13px;
    color: #475569;
}