.profile-maker-page {
    background: #fffaf4;
}

.profile-maker-main {
    min-height: 100vh;
    padding-top: var(--header-height);
}

.profile-maker-hero {
    min-height: calc(100vh - var(--header-height));
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 82%, rgba(255, 180, 68, 0.18), transparent 28%),
        radial-gradient(circle at 92% 13%, rgba(77, 149, 171, 0.17), transparent 25%),
        #fffaf4;
}

.profile-maker-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.profile-maker-orb-one {
    width: 210px;
    height: 210px;
    right: -105px;
    top: 18%;
    border: 32px solid rgba(77, 149, 171, 0.1);
}

.profile-maker-orb-two {
    width: 160px;
    height: 160px;
    left: -95px;
    bottom: 3%;
    background: rgba(255, 180, 68, 0.1);
}

.profile-maker-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(600px, 1.2fr);
    align-items: center;
    gap: clamp(40px, 6vw, 84px);
    position: relative;
    z-index: 2;
}

.profile-maker-intro {
    align-self: start;
    padding-top: 50px;
}

.profile-maker-tag {
    display: inline-flex;
    padding: 8px 14px;
    color: #9b5b00;
    background: #ffe6bd;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.profile-maker-intro h1 {
    margin: 22px 0 20px;
    color: var(--blue);
    font-size: clamp(50px, 5.4vw, 78px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.profile-maker-intro h1 em {
    display: block;
    color: var(--orange);
    font-family: "Pacifico", cursive;
    font-size: 0.88em;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.profile-maker-intro > p {
    max-width: 500px;
    margin: 0;
    color: #527078;
    font-size: 17px;
}

.profile-maker-steps {
    max-width: 435px;
    margin: 43px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
}

.profile-maker-steps li {
    position: relative;
    color: #7e959b;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-maker-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    height: 2px;
    top: 17px;
    left: calc(50% + 23px);
    right: calc(-50% + 23px);
    background: #d6e1e3;
}

.profile-maker-steps strong {
    width: 36px;
    height: 36px;
    margin: 0 auto 9px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #789096;
    background: #e7edef;
    border-radius: 50%;
    font-size: 13px;
}

.profile-maker-steps .is-active strong {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(53, 103, 118, 0.12);
}

.profile-maker-steps .is-done strong {
    color: #fff;
    background: var(--orange-light);
}

.profile-maker-privacy {
    max-width: 455px;
    margin-top: 38px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #46656d;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(53, 103, 118, 0.12);
    border-radius: 15px;
    font-size: 11px;
    line-height: 1.45;
}

.profile-maker-privacy > span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #469468;
    border-radius: 50%;
    font-weight: 900;
}

.profile-maker-privacy p {
    margin: 0;
}

.profile-maker-card {
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(255px, 0.8fr);
    gap: 28px;
    background: #fff;
    border: 1px solid rgba(53, 103, 118, 0.11);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.profile-maker-preview-column {
    min-width: 0;
}

.profile-maker-canvas-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #edf3f4;
    border-radius: 17px;
    box-shadow: 0 6px 22px rgba(23, 55, 64, 0.15);
}

#profile-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
}

#profile-canvas.is-dragging {
    cursor: grabbing;
}

.profile-maker-empty {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-content: start center;
    justify-items: center;
    padding: 12% 18px 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
}

.profile-maker-empty[hidden] {
    display: none;
}

.profile-maker-empty > span {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 9px rgba(77, 149, 171, 0.12);
    font-size: 36px;
    font-weight: 400;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.profile-maker-empty:hover > span,
.profile-maker-empty:focus-visible > span {
    transform: scale(1.07);
    background: var(--orange);
    box-shadow: 0 0 0 10px rgba(255, 180, 68, 0.2);
}

.profile-maker-empty:focus-visible {
    outline: 4px solid rgba(255, 180, 68, 0.72);
    outline-offset: -5px;
}

.profile-maker-empty strong {
    max-width: 94%;
    padding: 7px 12px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(23, 55, 64, 0.12);
    font-size: clamp(13px, 2vw, 18px);
}

.profile-maker-empty small {
    margin-top: 7px;
    padding: 4px 9px;
    color: #55747c;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    font-size: 10px;
}

.profile-maker-drag-tip {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
    padding: 8px 12px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(23, 55, 64, 0.14);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
}

.profile-maker-preview-note {
    margin: 10px 0 0;
    color: #789097;
    text-align: center;
    font-size: 9px;
}

.profile-maker-controls {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.profile-maker-file-input {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.profile-maker-button {
    width: 100%;
    min-height: 54px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.profile-maker-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(23, 55, 64, 0.2);
}

.profile-maker-button:focus-visible,
.profile-maker-frame:focus-visible,
.profile-maker-change-photo:focus-visible,
.profile-maker-control-title button:focus-visible {
    outline: 3px solid rgba(255, 180, 68, 0.65);
    outline-offset: 2px;
}

.profile-maker-button-primary {
    background: var(--blue);
}

.profile-maker-button-primary > span {
    margin-right: 4px;
    font-size: 20px;
}

.profile-maker-change-photo {
    min-height: 43px;
    border: 1px solid #bfd0d4;
    border-radius: 10px;
    color: var(--blue);
    background: #f8fbfb;
    font-size: 12px;
    font-weight: 800;
}

.profile-maker-error {
    margin: -7px 0 0;
    color: #a53828;
    font-size: 11px;
    line-height: 1.4;
}

.profile-maker-fieldset,
.profile-maker-adjust {
    margin: 0;
    padding: 17px 0 0;
    position: relative;
    border: 0;
    border-top: 1px solid #e3ecee;
}

.profile-maker-fieldset legend,
.profile-maker-control-title label {
    padding: 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.profile-maker-option-count {
    position: absolute;
    top: 17px;
    right: 0;
    color: #81969c;
    font-size: 9px;
}

.profile-maker-frames {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profile-maker-frame {
    min-width: 0;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #657e85;
    background: #fff;
}

.profile-maker-frame.is-selected {
    border-color: var(--orange);
    background: #fff7ec;
}

.profile-maker-frame-image {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(155deg, #ffebd3 0 55%, var(--frame-accent) 56% 64%, var(--frame-primary) 65% 100%);
    background-position: center;
    background-size: cover;
    border-radius: 6px;
}

.profile-maker-frame-image b {
    font-size: 11px;
    font-weight: 900;
}

.profile-maker-frame small {
    margin-top: 5px;
    display: block;
    overflow: hidden;
    font-size: 7px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-maker-control-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-maker-control-title button {
    padding: 0;
    border: 0;
    color: #9b5b00;
    background: none;
    font-size: 9px;
    font-weight: 900;
}

.profile-maker-range {
    margin-top: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 17px;
}

.profile-maker-range input {
    width: 100%;
    accent-color: var(--orange);
}

.profile-maker-button-download {
    margin-top: auto;
    background: var(--orange-action);
}

.profile-maker-button-download small {
    margin-top: 3px;
    display: block;
    font-size: 8px;
    font-weight: 600;
    opacity: 0.86;
}

.profile-maker-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 1080px) {
    .profile-maker-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .profile-maker-intro {
        padding-top: 0;
        text-align: center;
    }

    .profile-maker-intro > p,
    .profile-maker-privacy,
    .profile-maker-steps {
        margin-inline: auto;
    }

    .profile-maker-card {
        width: min(720px, 100%);
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .profile-maker-main {
        padding-top: var(--header-height);
    }

    .profile-maker-hero {
        padding: 36px 0 56px;
    }

    .profile-maker-grid {
        width: min(100% - 28px, 1180px);
        gap: 30px;
    }

    .profile-maker-intro h1 {
        margin-top: 18px;
        font-size: clamp(44px, 14vw, 60px);
    }

    .profile-maker-intro > p {
        font-size: 14px;
    }

    .profile-maker-steps {
        margin-top: 30px;
    }

    .profile-maker-steps li {
        font-size: 8px;
    }

    .profile-maker-privacy {
        margin-top: 28px;
        text-align: left;
    }

    .profile-maker-card {
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 19px;
    }

    .profile-maker-canvas-wrap {
        width: min(100%, 470px);
        margin-inline: auto;
        border-radius: 13px;
    }

    .profile-maker-controls {
        gap: 15px;
    }

    .profile-maker-button-download {
        min-height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-maker-button {
        transition: none;
    }
}
