.mix-page {
    background: #141413;
    min-height: 100vh;
    padding: 12px 16px 40px;
    color: #f3efe4;
}

.mix-hero {
    width: min(760px, 100%);
    margin: 0 auto 20px;
    text-align: center;
}

.mix-hero__eyebrow {
    margin: 0 0 8px;
    color: #e8c547;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mix-hero__title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.mix-hero__lead {
    margin: 12px auto 0;
    max-width: 34em;
    color: #b7b2a6;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.mix-panel {
    width: min(920px, 100%);
    margin: 0 auto 22px;
    display: grid;
    gap: 16px;
}

.mix-panel__label {
    margin: 0 0 8px;
    color: #8f8a7e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mix-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.mix-chip {
    appearance: none;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid rgba(232, 197, 71, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #f3efe4;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mix-chip:hover,
.mix-chip:focus-visible {
    border-color: #e8c547;
    background: rgba(232, 197, 71, 0.12);
}

.mix-chip.is-active {
    background: #e8c547;
    border-color: #e8c547;
    color: #1a180f;
}

.mix-strength__group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid rgba(232, 197, 71, 0.35);
    border-radius: 999px;
    overflow: hidden;
}

.mix-strength__btn {
    appearance: none;
    margin: 0;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    color: #f3efe4;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.mix-strength__btn + .mix-strength__btn {
    border-left: 1px solid rgba(232, 197, 71, 0.25);
}

.mix-strength__btn.is-active {
    background: #e8c547;
    color: #1a180f;
}

.mix-experiment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2px auto 0;
    color: #f3efe4;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.mix-experiment__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mix-experiment__box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(232, 197, 71, 0.55);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

.mix-experiment__input:focus-visible + .mix-experiment__box {
    outline: 1px solid #e8c547;
}

.mix-experiment__input:checked + .mix-experiment__box {
    background: #e8c547;
    border-color: #e8c547;
}

.mix-experiment__input:checked + .mix-experiment__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #1a180f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mix-slots {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.mix-slot {
    position: relative;
    min-height: 88px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: #1d1d1b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mix-slot.is-open,
.mix-slot.is-locked,
.mix-slot.is-result {
    border-color: rgba(232, 197, 71, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.mix-slot.is-open {
    z-index: 5;
}

.mix-slot.is-spinning .mix-slot__name {
    animation: mix-spin 0.12s linear infinite;
    filter: blur(1.5px);
}

.mix-slot__pick {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 10px 36px 12px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    cursor: pointer;
}

.mix-slot__percent {
    color: #e8c547;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mix-slot__name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mix-slot__category {
    color: #e8c547;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-height: 1.2em;
}

.mix-slot__hint {
    color: #8f8a7e;
    font-size: 12px;
}

.mix-slot.is-filled .mix-slot__hint,
.mix-slot.is-result .mix-slot__hint {
    display: none;
}

.mix-slot__clear {
    appearance: none;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f3efe4;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.mix-slot__search {
    position: absolute;
    inset: auto 12px 12px;
    z-index: 3;
    padding: 10px;
    border-radius: 14px;
    background: #141413;
    border: 1px solid rgba(232, 197, 71, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.mix-slot__input {
    width: 100%;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #1d1d1b;
    color: #fff;
    font-size: 14px;
}

.mix-slot__input:focus {
    outline: 1px solid #e8c547;
}

.mix-slot__list {
    max-height: 140px;
    overflow: auto;
}

.mix-slot__option {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f3efe4;
    text-align: left;
    cursor: pointer;
}

.mix-slot__option:hover,
.mix-slot__option:focus-visible {
    background: rgba(232, 197, 71, 0.12);
}

.mix-slot__option small {
    color: #8f8a7e;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mix-actions,
.mix-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: min(640px, 100%);
    margin: 22px auto 0;
}

.mix-btn {
    appearance: none;
    min-width: 180px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.mix-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.mix-btn--primary {
    border: 0;
    background: #e8c547;
    color: #1a180f;
}

.mix-btn--ghost {
    border: 1px solid rgba(232, 197, 71, 0.4);
    background: transparent;
    color: #f3efe4;
}

.mix-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.mix-result {
    width: min(760px, 100%);
    margin: 24px auto 0;
    padding: 18px 16px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mix-score__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.mix-score__label {
    color: #8f8a7e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mix-score__value {
    color: #e8c547;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mix-score__bar {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.mix-score__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #c9a227, #e8c547);
    transition: width 0.6s ease;
}

.mix-warning {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(232, 120, 71, 0.15);
    color: #ffb088;
    font-size: 14px;
    font-weight: 500;
}

.mix-reasons {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.mix-reasons li {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #d8d3c7;
    font-size: 14px;
    line-height: 1.45;
}

.mix-note {
    margin: 16px 0 0;
    color: #8f8a7e;
    font-size: 13px;
    text-align: center;
}

.mix-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 40;
    width: min(360px, calc(100% - 24px));
    padding: 14px 16px;
    border: 1px solid rgba(232, 197, 71, 0.45);
    border-radius: 16px;
    background: #1d1d1b;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    color: #f3efe4;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mix-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mix-toast__title {
    margin: 0 0 4px;
    color: #e8c547;
    font-size: 13px;
    font-weight: 600;
}

.mix-toast__text {
    margin: 0;
    color: #d8d3c7;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-line;
}

@keyframes mix-spin {
    from { transform: translateY(6px); opacity: 0.45; }
    to { transform: translateY(-6px); opacity: 1; }
}

@media (min-width: 768px) {
    .mix-page {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    .mix-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .mix-slot,
    .mix-slot__pick {
        min-height: 132px;
    }

    .mix-slot {
        border-radius: 18px;
    }

    .mix-slot__pick {
        gap: 4px;
        padding: 16px 18px 18px;
    }

    .mix-slot__percent {
        font-size: 28px;
    }

    .mix-slot__name {
        font-size: 18px;
    }

    .mix-slot__category {
        font-size: 11px;
    }

    .mix-slot__clear {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }

    .mix-slot:hover {
        transform: translateY(-3px);
    }

    .mix-slot.is-spinning:hover,
    .mix-slot.is-open:hover {
        transform: none;
    }
}
