#celticFontGenerator{
    background:linear-gradient(
        135deg,
        #0b3d2e 0%,
        #14532d 35%,
        #166534 70%,
        #052e16 100%
    );
}

    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:linear-gradient(135deg,#08111f,#131f3d,#0c1730);
    color:var(--text);
    padding:25px;
    border-radius:24px;
    max-width:1200px;
    margin:auto;
}

#celticFontGenerator *{
    box-sizing:border-box;
}

.cfg-header{
    text-align:center;
    margin-bottom:25px;
}

.cfg-badge{
    display:inline-block;
    background:linear-gradient(90deg,#00d4ff,#7cff6b);
    color:#000;
    padding:8px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:15px;
}

.cfg-title{
    font-size:clamp(28px,5vw,50px);
    font-weight:800;
    margin:0;
}

.cfg-sub{
    color:#b8c4e0;
    margin-top:10px;
    line-height:1.7;
}

.cfg-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.cfg-card{
    background:linear-gradient(145deg,#131c35,#1a2648);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:20px;
}

#cfgInput{
    width:100%;
    min-height:140px;
    resize:vertical;
    border:none;
    outline:none;
    background:#0b1430;
    color:#fff;
    border-radius:14px;
    padding:15px;
    font-size:16px;
}

.controls{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-top:15px;
}

.controls button,
.controls select{
    width:100%;
    border:none;
    border-radius:12px;
    padding:12px;
    font-size:15px;
}

.controls button{
    background:linear-gradient(90deg,#00d4ff,#7cff6b);
    color:#000;
    font-weight:700;
    cursor:pointer;
}

.controls select{
    background:#09142d;
    color:#fff;
}

.results{
    display:grid;
    gap:15px;
}

.font-item{
    background:#0a1530;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:16px;
}

.font-preview{
    font-size:22px;
    line-height:1.8;
    word-break:break-word;
    font-weight:700;

    background:linear-gradient(
        90deg,
        #ffd700,
        #fff3b0,
        #f4d03f,
        #ffd700
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.font-actions{
    margin-top:12px;
}

.copy-btn{
    width:100%;
}

.stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin-top:20px;
}

.stat{
    background:#09142d;
    border-radius:16px;
    text-align:center;
    padding:15px;
}

.stat strong{
    display:block;
    font-size:24px;
    color:#ffd166;
}

@media(max-width:768px){

    .cfg-grid{
        grid-template-columns:1fr;
    }

    .controls{
        grid-template-columns:1fr;
    }

    .stats{
        grid-template-columns:1fr;
    }

}