


:root {
    --pale-blue: #9999ff;
    --pale-yellow: #ffff99;
    --pale-red: #ffb8b8;
    --pale-green: #99D1A7;
    --pale-purple: #cc99ff;
}


.fld {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.fld span {
    font-family: "Archivo", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
}

.fld input[type="text"],
.fld textarea {
    width: 100%;
    font-family: "Archivo", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    border: 3px solid #1a1a1a;
    padding: 0.875rem 1.125rem;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transition: box-shadow 0.12s ease;
}

.fld textarea { resize: none; }
.fld input[type="text"]::placeholder,
.fld textarea::placeholder {
    color: #a89a78;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
    transition: opacity 0.45s ease;
}

.fld input.ph-fade::placeholder,
.fld textarea.ph-fade::placeholder { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .fld input[type="text"]::placeholder { transition: none; }
}
.fld input[type="text"]:focus,
.fld textarea:focus {
    outline: none;
    box-shadow: 8px 8px 0 #ffff00;
}

.fld input[type="text"]:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 1000px #fff;
    -webkit-text-fill-color: #1a1a1a;
}
.fld input[type="text"]:-webkit-autofill:focus {
    -webkit-box-shadow: inset 0 0 0 1000px #fff, 8px 8px 0 #ffff00;
}



:root { --btn-shadow: 4px; }

.btn {
    font-family: "Archivo", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 1.75rem;
    
    line-height: 1;
    white-space: nowrap;   
    color: #000;
    background: #ffff00;
    border: 3px solid #000;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5625rem;
    align-self: flex-start; 
    cursor: pointer;
    box-shadow: var(--btn-shadow, 4px) var(--btn-shadow, 4px) 0 #000;
    transition: transform 0.1s, box-shadow 0.1s, background 0.15s, border-color 0.15s;
}


.fld-cta {
    align-items: flex-end;
    padding: 0 0.5rem 0.5rem 0;
}
.fld-cta .btn { align-self: auto; }
@media (max-width: 767px) {
    .fld-cta { align-items: center; }
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        
        transform: translate(var(--btn-shadow, 4px), var(--btn-shadow, 4px));
        box-shadow: 0 0 0 #000;
    }
}
.btn:active {
    transform: translate(var(--btn-shadow, 4px), var(--btn-shadow, 4px));
    box-shadow: 0 0 0 #000;
}
.btn:disabled {
    background: #d4d4d4;
    border-color: #9a9a9a;
    color: #777;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-light { background: #fff; }
.btn-blue { background: #0000FF; color: #fff; }


.btn svg {
    width: 0.8em;
    height: 0.8em;
    fill: currentColor;
    margin-right: 0.4em;
    vertical-align: -0.08em;
}


@media (max-width: 767px) {
    .fld span {
        font-size: 1.3rem;
        line-height: 1.8rem;
    }
    
    .fld input[type="text"], .fld textarea { font-size: 1.275rem; }
    
    .chk { font-size: clamp(0.85rem, 0.37rem + 2.4vw, 1rem); }
    .chk .chk-text { line-height: 1.5; }
    
    .btn {
        font-size: 1.35rem;
        padding: 0.75rem 1.25rem;
    }
}


@media (min-width: 768px) and (max-width: 1100px) {
    .fld input[type="text"]::placeholder,
    .fld textarea::placeholder { font-size: 0.88em; }
    .chk { font-size: 1rem; }
    .chk .chk-text { line-height: 1.4; }
}


.speech {
    position: relative;
    background: #fff;
    border: 5px solid #000;
    border-radius: 34px 38px 30px 36px / 38px 30px 36px 30px;
    padding: 1rem 1.375rem 1.125rem;
    color: #15243a;
    overflow-wrap: break-word;
}
.speech::before {
    content: "";
    position: absolute;
    bottom: -26px;
    right: 26px;
    width: 38px;
    height: 34px;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 72% 100%);
}
.speech::after {
    content: "";
    position: absolute;
    bottom: -19px;
    right: 30px;
    width: 28px;
    
    height: 29px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 72% 100%);
}


.chk {
    display: flex;
    align-items: flex-start;  
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.chk input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.chk .box {
    flex: none;
    width: 3.375rem;
    height: 3.375rem;
    background: #fff;
    border: 3px solid #1a1a1a;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    display: grid;
    place-items: center;
    transition: box-shadow 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.chk input:focus-visible + .box { box-shadow: 6px 6px 0 #ffff00; }
.chk a {
    color: #0000ff;
    text-decoration: underline;
}
.chk a:hover { text-decoration: none; }
.chk .chk-text {
    line-height: 2.2rem;
    margin-left: 1.25rem;
}
.chk input:checked + .box {
    transform: rotate(-5deg);
    box-shadow: 5px 5px 0 #1a1a1a;
    background: #ffff00;
}

.chk input:checked + .box::after {
    content: "\2714";
    font-size: 2.2rem;
    color: #1a1a1a;
    transform: rotate(5deg);
}


.rad {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.rad input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.rad .dot {
    flex: none;
    width: 3.375rem;
    height: 3.375rem;
    background: #fff;
    border: 3px solid #1a1a1a;
    
    border-radius: 50% 52% 55% 47% / 46% 55% 48% 52%;
    transform: rotate(2deg);
    display: grid;
    place-items: center;
    position: relative;
    transition: background 0.12s ease, box-shadow 0.12s ease;
}
.rad .dot::before {   
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid #1a1a1a;
    border-radius: 51% 49% 53% 47% / 47% 53% 49% 51%;
    transform: rotate(7deg);
    opacity: 0.5;
}
.rad input:focus-visible + .dot { box-shadow: 0 0 0 4px #ffcc00; }
.rad input:checked + .dot { background: #0000ff; }
.rad input:checked + .dot::after {   
    content: "";
    width: 74%;
    height: 74%;
    background: url("/images/herosite-star-128.png") center / contain no-repeat;
}
.rad-text { line-height: 1.3; }


.rad input:checked + .dot.dot-dice { background: #fff; }
.rad input:checked + .dot.dot-dice::after {
    content: "";
    width: 82%;
    height: 82%;
    background-image: url("/images/logo-generator/editor/random-dice.webp");
    background-repeat: no-repeat;
    background-size: 1500% 100%;   
    background-position: var(--dice-x, 0%) center;
}
