/* ==========================================================================
   Season Face-Off — [tm_season_faceoff]
   Light theme; matches free-tool cards on tonematch.pro pages.
   ========================================================================== */

.tm-faceoff-card {
    --tmfo-bg: #ffffff;
    --tmfo-bg-soft: #f4f1ec;
    --tmfo-line: #e4dfd7;
    --tmfo-text: #1c1917;
    --tmfo-muted: #6b6560;
    --tmfo-accent: #6d3df2;
    --tmfo-accent-soft: rgba(109, 61, 242, 0.1);
    --tmfo-a: #3d6fd9;
    --tmfo-b: #c45d42;
    max-width: 760px !important;
    margin: 3rem auto;
    padding: 28px;
    border-radius: 18px;
    background: var(--tmfo-bg);
    border: 1px solid var(--tmfo-line);
    color: var(--tmfo-text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.tm-faceoff-title {
    margin: 0 0 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--tmfo-text);
}

.tm-faceoff-intro {
    margin: 0 0 20px;
    color: var(--tmfo-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.tm-faceoff-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 20px;
    border: 1.5px dashed #cfc8bd;
    border-radius: 14px;
    background: var(--tmfo-bg-soft);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tm-faceoff-drop:hover,
.tm-faceoff-drop.is-drag {
    border-color: var(--tmfo-accent);
    background: var(--tmfo-accent-soft);
}

.tm-faceoff-drop-icon {
    color: #8d3f5c;
}
.tm-faceoff-drop-label {
    font-weight: 600;
    font-size: 0.98rem;
}

.tm-faceoff-drop-hint {
    color: var(--tmfo-muted);
    font-size: 0.8rem;
}

.tm-faceoff-hint {
    margin: 14px 0 0;
    color: var(--tmfo-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.tm-faceoff-pickers {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: start;
    margin: 22px 0 14px;
}

.tm-faceoff-picker-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tm-faceoff-picker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
}

.tm-faceoff-picker[data-side="a"] .tm-faceoff-picker-badge { background: var(--tmfo-a); }
.tm-faceoff-picker[data-side="b"] .tm-faceoff-picker-badge { background: var(--tmfo-b); }

.tm-faceoff-picker-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tmfo-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tm-faceoff-chips {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.tm-faceoff-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 9px;
    border: 1px solid var(--tmfo-line);
    background: #fff;
    color: var(--tmfo-text);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tm-faceoff-chip.is-on {
    border-color: #8d3f5c;
    box-shadow: 0 0 0 1px #8d3f5c;
    background: rgb(244 241 236);
}

.tm-faceoff-chip.is-locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.tm-faceoff-chip-swatches {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.tm-faceoff-chip-swatches i {
    width: 8px;
    height: 16px;
    display: block;
}

.tm-faceoff-swap {
    margin-top: 34px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--tmfo-line);
    background: #fff;
    color: var(--tmfo-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tm-faceoff-swap:hover {
    border-color: var(--tmfo-accent);
    background: var(--tmfo-accent-soft);
}

.tm-faceoff-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--tmfo-muted);
    cursor: pointer;
    user-select: none;
}

.tm-faceoff-toggle input {
    accent-color: var(--tmfo-accent);
}

.tm-faceoff-caption-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.tm-faceoff-caption-label {
    font-size: 0.8rem;
    color: var(--tmfo-muted);
    font-weight: 600;
}

.tm-faceoff-caption {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--tmfo-line);
    background: #fff;
    color: var(--tmfo-text);
    font: inherit;
    font-size: 0.9rem;
}

.tm-faceoff-caption:focus {
    outline: none;
    border-color: var(--tmfo-accent);
}

.tm-faceoff-stage {
    border-radius: 14px;
    overflow: hidden;
    background: var(--tmfo-bg-soft);
    border: 1px solid var(--tmfo-line);
    line-height: 0;
}

.tm-faceoff-preview {
    width: 100%;
    height: auto;
    display: block;
}

.tm-faceoff-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.tm-faceoff-download {
    padding: 11px 22px;
    border-radius: 10px;
    border: none;
    background: #8d3f5c;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.tm-faceoff-download:hover { filter: brightness(1.08); }
.tm-faceoff-download:disabled { opacity: 0.6; cursor: wait; }

.tm-faceoff-status {
    margin: 12px 0 0;
    min-height: 1.2em;
    font-size: 0.82rem;
    color: var(--tmfo-muted);
}

.tm-faceoff-status.is-error { color: #b42318; }

.tm-faceoff-drape-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--tmfo-muted);
    cursor: pointer;
    user-select: none;
}

.tm-faceoff-drape-row input {
    accent-color: var(--tmfo-accent);
}

@media (max-width: 640px) {
    .tm-faceoff-card { padding: 18px; }
    .tm-faceoff-pickers {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tm-faceoff-swap {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    .tm-faceoff-chips { max-height: 160px; }
}

/* ---- White-balance pre-flight row ------------------------------------------ */
.tm-wb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.85rem;
    line-height: 1.45;
}

.tm-wb-icon {
    flex-shrink: 0;
    color: #fbbf24;
}

.tm-wb-fix {
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 9px;
    border: none;
    background: #8d3f5c;
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.tm-wb-fix:hover { filter: brightness(1.1); }

@media (max-width: 480px) {
    .tm-wb-row { flex-wrap: wrap; }
    .tm-wb-fix { margin-left: 0; }
}
