.create-container {
    opacity: 0;
}

body.create-mistress-wizard-ready .create-container {
    opacity: 1;
}

body.create-mistress-wizard-page .main-content {
    width: 100% !important;
    margin-left: 0 !important;
    align-items: stretch;
    padding: 0;
}

body.create-mistress-wizard-page #sidebar,
body.create-mistress-wizard-page .sidebar-overlay,
body.create-mistress-wizard-page .mobile-header,
body.create-mistress-wizard-page #footer-container {
    display: none !important;
}

body.create-mistress-wizard-page .create-container {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 28px clamp(18px, 5vw, 72px) 54px;
    border: 0;
    border-radius: 0;
    background: #111113;
    box-sizing: border-box;
    transition: opacity 0.15s ease;
}

.cmw-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.cmw-progress {
    height: 8px;
    margin: 12px 0 24px;
    overflow: hidden;
    border-radius: 999px;
    background: #3d3e4d;
}

.cmw-progress-fill {
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e94878, #ff7293);
    transition: width 0.35s ease;
}

.cmw-header {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.cmw-title {
    margin: 0;
    padding: 0 56px;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    text-align: center;
}

.cmw-back {
    position: absolute;
    left: 0;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.cmw-section-title {
    margin: 42px 0 20px;
    color: #fff;
    font-size: clamp(22px, 2.5vw, 30px);
    text-align: center;
}

.cmw-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 18px;
}

.cmw-card-grid--six {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.cmw-choice {
    position: relative;
    min-height: 238px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 18px;
    background: #242426;
    color: #fff;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cmw-card-grid--six .cmw-choice {
    min-height: 218px;
}

.cmw-choice:hover,
.cmw-choice:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 105, 145, 0.7);
    outline: none;
}

.cmw-choice.is-selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.cmw-choice-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) brightness(0.8);
}

.cmw-choice::after {
    content: "";
    position: absolute;
    inset: 38% 0 0;
    z-index: -1;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.cmw-choice-label {
    position: absolute;
    right: 12px;
    bottom: 16px;
    left: 12px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 2px 8px #000;
}

.cmw-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: none;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 2px solid #101012;
    border-radius: 50%;
    background: #fff;
    color: #101012;
    font-weight: 900;
}

.cmw-choice.is-selected .cmw-check {
    display: flex;
}

.cmw-slider-panel {
    padding: 28px clamp(18px, 5vw, 54px);
    border: 1px solid #33343a;
    border-radius: 18px;
    background: linear-gradient(135deg, #232325, #18181a);
}

.cmw-age-bubble {
    width: max-content;
    margin: 0 auto 24px;
    padding: 9px 17px;
    border: 1px solid #ff648b;
    border-radius: 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.cmw-slider-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

.cmw-slider {
    width: 100%;
    accent-color: #ff648b;
}

.cmw-actions {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.cmw-primary {
    min-width: 220px;
    padding: 15px 26px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #e94174, #ff7995);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(233, 65, 116, 0.2);
}

.cmw-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cmw-name-wrap {
    position: relative;
}

.cmw-name {
    width: 100%;
    padding: 18px 58px 18px 20px;
    border: 1px solid #343438;
    border-radius: 12px;
    background: #28282a;
    color: #fff;
    box-sizing: border-box;
    font: inherit;
    font-size: 18px;
    outline: none;
}

.cmw-name:focus {
    border-color: #ff648b;
}

.cmw-randomize {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.cmw-counter {
    margin-top: 8px;
    color: #8e8e98;
    text-align: right;
}

.cmw-option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cmw-option-grid--relationship {
    grid-template-columns: repeat(5, 1fr);
}

.cmw-option {
    min-height: 84px;
    padding: 16px;
    border: 1px solid #33343a;
    border-radius: 14px;
    background: #202022;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.cmw-option:hover,
.cmw-option:focus-visible {
    transform: translateY(-2px);
    border-color: #8e5367;
    outline: none;
}

.cmw-option.is-selected {
    border-color: #fff;
    background: linear-gradient(135deg, #332127, #241b20);
    box-shadow: inset 0 0 0 1px #fff;
}

.cmw-option-emoji {
    display: block;
    margin-bottom: 9px;
    font-size: 30px;
}

.cmw-generating {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cmw-generation-orb {
    width: min(330px, 78vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 12px auto 32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #19191d 0 41%, transparent 42%),
        conic-gradient(from 0deg, #ff648b var(--cmw-progress, 0%), #343540 0);
    box-shadow: 0 0 70px rgba(255, 100, 139, 0.16);
    transition: background 0.1s linear;
}

.cmw-generation-number {
    color: #fff;
    font-size: 52px;
    font-weight: 900;
}

.cmw-generation-copy {
    max-width: 580px;
    margin: 0;
    color: #bdbdc5;
    font-size: 18px;
    line-height: 1.6;
}

.cmw-ready-card {
    width: min(760px, 100%);
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid #3a3035;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(255, 100, 139, 0.14), transparent 50%), #1a1a1d;
}

.cmw-ready-name {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 58px);
}

.cmw-ready-copy {
    margin: 0 auto 26px;
    max-width: 560px;
    color: #c2c2ca;
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .cmw-card-grid,
    .cmw-card-grid--six {
        grid-template-columns: repeat(3, 1fr);
    }

    .cmw-option-grid--relationship {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body.create-mistress-wizard-page .create-container {
        padding: 22px 14px 42px;
    }

    .cmw-progress {
        margin-top: 62px;
    }

    .cmw-card-grid,
    .cmw-card-grid--six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cmw-choice,
    .cmw-card-grid--six .cmw-choice {
        min-height: 205px;
    }

    .cmw-option-grid,
    .cmw-option-grid--relationship {
        grid-template-columns: repeat(2, 1fr);
    }

    .cmw-slider-row {
        gap: 12px;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .cmw-choice,
    .cmw-card-grid--six .cmw-choice {
        min-height: 180px;
    }

    .cmw-choice-label {
        font-size: 16px;
    }

    .cmw-option-grid,
    .cmw-option-grid--relationship {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmw-choice,
    .cmw-primary,
    .cmw-progress-fill {
        transition: none;
    }
}
