.gfp-generator,
.gfp-generator * {
    box-sizing: border-box;
}

.gfp-generator {
    --gfp-primary: #392c63;
    --gfp-secondary: #faa31b;
    width: 100%;
    max-width: 760px;
    margin: 30px auto;
    padding: clamp(18px, 4vw, 36px);
    color: #fff;
    background: var(--gfp-primary);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(34, 24, 64, .22);
    font-family: Arial, Helvetica, sans-serif;
}

.gfp-title {
    margin: 0 0 24px;
    color: var(--gfp-secondary);
    font-size: clamp(34px, 8vw, 62px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    overflow-wrap: anywhere;
}

.gfp-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 15px;
}

.gfp-name,
.gfp-button {
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-weight: 700;
}

.gfp-name {
    width: 100%;
    padding: 0 15px;
    color: #241b40;
    background: #fff;
    outline: none;
}

.gfp-name:focus {
    box-shadow: 0 0 0 4px rgba(250, 163, 27, .35);
}

.gfp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--gfp-primary);
    background: var(--gfp-secondary);
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.gfp-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.gfp-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.gfp-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.gfp-range-label {
    display: block;
    margin: 7px 0;
    font-size: 15px;
    font-weight: 700;
}

.gfp-range {
    width: 100%;
    accent-color: var(--gfp-secondary);
    cursor: pointer;
}

.gfp-help,
.gfp-status,
.gfp-legal {
    text-align: center;
}

.gfp-help {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.gfp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 22px 0;
}

.gfp-canvas-box {
    overflow: hidden;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e7e7e7 25%, transparent 25%),
        linear-gradient(-45deg, #e7e7e7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e7e7e7 75%),
        linear-gradient(-45deg, transparent 75%, #e7e7e7 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    border-radius: 12px;
    box-shadow: 4px 5px 0 rgba(0, 0, 0, .65);
}

.gfp-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: default;
    touch-action: none;
    user-select: none;
}

.gfp-status {
    min-height: 22px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.gfp-legal {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .gfp-generator {
        margin: 15px auto;
        padding: 17px;
        border-radius: 14px;
    }

    .gfp-form-row,
    .gfp-actions {
        grid-template-columns: 1fr;
    }

    .gfp-form-row,
    .gfp-actions {
        display: grid;
    }

    .gfp-button {
        width: 100%;
    }
}
