@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --peach-50: #fff6f1;
    --peach-100: #ffe9dd;
    --peach-200: #ffd6c2;
    --peach-300: #ffbb9c;
    --peach-400: #ff9d74;
    --peach-500: #f97e4e;
    --peach-600: #e2612f;
    --peach-700: #b94a20;

    --apricot: #ffc46b;
    --rose: #ff8a8a;
    --cloud: #fdfcfb;
    --mist: #f7efe9;

    --ink: #2f2320;
    --ink-soft: #5c4a44;
    --muted: #9b867e;
    --line: #f2e2d8;
    --line-strong: #e8cfc0;
    --surface: #ffffff;
    --page: #fff9f5;

    --brand: linear-gradient(135deg, #ff9d74 0%, #f97e4e 45%, #ffc46b 100%);
    --brand-soft: linear-gradient(135deg, #fff1e7 0%, #ffe4d4 55%, #fff0d9 100%);
    --brand-deep: linear-gradient(135deg, #e2612f 0%, #f97e4e 60%, #ffb26b 100%);
    --track: linear-gradient(90deg, #ffc46b, #ff9d74, #f97e4e);
    --glass: rgba(255, 252, 249, .78);

    --radius-xl: 28px;
    --radius: 22px;
    --radius-sm: 16px;
    --radius-xs: 12px;
    --pill: 999px;

    --shadow-xs: 0 1px 2px rgba(70, 40, 25, .05);
    --shadow-sm: 0 4px 14px rgba(180, 105, 65, .08);
    --shadow-md: 0 14px 34px rgba(180, 105, 65, .13);
    --shadow-lg: 0 28px 70px rgba(90, 50, 30, .18);
    --shadow-glow: 0 10px 26px rgba(249, 126, 78, .32);
    --ring: 0 0 0 4px rgba(255, 157, 116, .28);

    --f-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --f-body: 'Outfit', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    font-family: var(--f-body);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-bottom: 48px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    background:
        radial-gradient(820px 420px at 88% -6%, #ffe0cc 0%, rgba(255, 224, 204, 0) 62%),
        radial-gradient(760px 380px at 6% 2%, #ffeede 0%, rgba(255, 238, 222, 0) 60%),
        var(--page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.fAr,
.Afr {
    display: none;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px;
}

header {
    position: relative;
    background: var(--brand);
    color: #fff;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 14px 40px rgba(226, 97, 47, .22);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 46%);
    pointer-events: none;
}

header .inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
}

.brand h1,
h1.entry-title {
    margin: 4px 0;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(120, 55, 25, .22);
}

#topMenu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 60px;
    margin-top: 10px;
    padding: 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    background: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#topMenu::-webkit-scrollbar {
    height: 0;
    display: none;
}

#topMenu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--pill);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    transition: background .2s ease, color .2s ease, transform .12s ease;
}

#topMenu a.active {
    color: var(--peach-700);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(120, 55, 25, .2);
}

@media (hover: hover) and (pointer: fine) {
    #topMenu a:hover {
        color: #fff;
        background: rgba(255, 255, 255, .3);
    }

    #topMenu a.active:hover {
        color: var(--peach-700);
        background: #fff;
    }
}

#topMenu a:active {
    transform: scale(.95);
}

nav a,
#menusec a,
.floatmenu a {
    scroll-snap-align: start;
    display: inline-block;
    white-space: nowrap;
    padding: 10px 16px;
    margin: 4px;
    border-radius: var(--pill);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

@media (hover: hover) and (pointer: fine) {

    nav a:hover,
    #menusec a:hover,
    .floatmenu a:hover {
        color: var(--peach-700);
        background: var(--peach-50);
        border-color: var(--peach-200);
        box-shadow: var(--shadow-sm);
    }
}

nav a:active,
#menusec a:active,
.floatmenu a:active {
    transform: scale(.97);
    background: var(--peach-100);
}

#menusec a {
    margin-top: 8px;
    padding: 13px 18px;
    font-size: 1rem;
    color: var(--ink-soft);
}

.floatmenu {
    height: 100%;
    display: block;
    text-align: left;
    margin-top: 8px;
    overflow: auto;
    padding: 10px 22px;
}

.floatmenu a {
    display: block;
    color: var(--ink);
    font-size: 1.02rem;
    margin: 8px 0;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    border-radius: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#results {
    width: 100%;
    margin-top: 6px;
}

.bonitas-letras {
    padding: 0 4px;
}

.bonitas-letras h2 {
    margin: 20px 6px 10px;
    font-family: var(--f-display);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--peach-600);
}

.input-section {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.input-section .container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    align-items: flex-start;
    justify-content: center;
}

.input-text {
    flex: 1;
    min-width: 0;
    position: relative;
    display: block;
}

.input-section textarea {
    width: 100%;
    min-height: 62px;
    max-height: 220px;
    padding: 17px 58px 24px 22px;
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    outline: none;
    resize: none;
    overflow-y: auto;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-section textarea::placeholder {
    color: #bda79e;
}

.input-section textarea:focus {
    border-color: var(--peach-300);
    box-shadow: var(--ring);
}

.input-text i {
    position: absolute;
    right: 20px;
    bottom: 10px;
    z-index: 9;
    font-size: 11px;
    font-style: normal;
    color: var(--muted);
}

.clear-overlay {
    position: absolute;
    right: 12px;
    top: 12px;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--pill);
    background: var(--peach-100);
    color: var(--peach-600);
    font-weight: 800;
    cursor: pointer;
    z-index: 10;
    transition: background .18s ease, color .18s ease, transform .12s ease;
}

.clear-overlay:active {
    transform: scale(.9);
    background: var(--peach-200);
}

@media (hover: hover) and (pointer: fine) {
    .clear-overlay:hover {
        background: var(--peach-200);
        color: var(--peach-700);
    }
}

button#menu {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    margin-top: 8px;
    font-size: 1.5rem;
    color: #fff;
    background: var(--brand-deep);
    border-radius: 18px;
    box-shadow: var(--shadow-glow);
    transition: transform .12s ease, box-shadow .18s ease;
}

button#menu:active {
    transform: scale(.93);
}

#randomcloud {
    display: block;
    text-align: center;
    max-width: 1040px;
    width: 100%;
    height: 86px;
    margin: 16px auto 0;
    padding: 8px 12px;
    overflow: hidden;
}

#randomcloud li {
    display: inline-block;
}

#randomcloud div {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    font-size: 25px !important;
    color: var(--ink-soft);
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .12s ease;
}

#randomcloud .font:focus {
    color: var(--peach-600);
    outline: none;
}

@media (hover: hover) and (pointer: fine) {

    #randomcloud .font:hover,
    #randomcloud div:hover {
        color: var(--peach-700);
        background: var(--peach-50);
    }
}

#randomcloud div:active {
    transform: scale(.94);
    background: var(--peach-100);
}

#randomcloud #item1 div {
    font-size: 12px;
}

#randomcloud #item2 div {
    font-size: 15px;
}

#randomcloud #item3 div {
    font-size: 18px;
}

#randomcloud #item4 div {
    font-size: 23px;
}

#randomcloud #item5 div {
    font-size: 29px;
}

.font-size-controller {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: 1040px;
    margin: 8px auto 0;
    padding: 6px 22px;
}

.font-size-controller label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.font-size-controller input[type="range"] {
    width: 190px;
    height: 8px;
    background: var(--track);
    border-radius: var(--pill);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.font-size-controller input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid var(--peach-400);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(226, 97, 47, .3);
    transition: transform .14s ease;
}

.font-size-controller input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.font-size-controller input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #fff;
    border: 3px solid var(--peach-400);
    border-radius: 50%;
    cursor: pointer;
}

.font-size-controller input[type="range"]::-moz-range-track {
    height: 8px;
    background: var(--track);
    border-radius: var(--pill);
}

#fontSizeValue {
    min-width: 34px;
    text-align: center;
    font-weight: 800;
    color: var(--peach-600);
}

.share-section {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 1040px;
    margin: 12px auto 0;
    padding: 0 18px;
}

.share-section span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.share-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    width: auto;
    height: auto;
    padding: 11px 20px;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-2px);
        background: var(--peach-50);
        border-color: var(--peach-200);
        box-shadow: var(--shadow-md);
    }
}

.btn:active {
    transform: scale(.97);
}

.btn.secondary {
    color: var(--peach-700);
    background: var(--peach-50);
    border: 1px solid var(--peach-200);
    box-shadow: none;
}

.btn.closeit {
    color: #c2413f;
    background: #fff0ef;
    border: 1px solid #ffd2cf;
}

.btn.copyit {
    color: #1f8a63;
    background: #eafaf2;
    border: 1px solid #b9ead4;
}

.grid ul,
.letraspro {
    max-width: 1040px;
    margin: 16px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    list-style: none;
}

.letraspro li {
    list-style: none;
    position: relative;
    margin: 0;
}

.อักษร-พิเศษ {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--cloud);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}

.อักษร-พิเศษ::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand);
    opacity: 0;
    transition: opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .อักษร-พิเศษ:hover {
        transform: translateY(-3px);
        border-color: var(--peach-200);
        box-shadow: var(--shadow-md);
    }

    .อักษร-พิเศษ:hover::before {
        opacity: 1;
    }
}

.letraspro li .font {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 20px 18px 28px;
    font-family: inherit;
    font-size: 1.1rem;
    color: var(--ink);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    user-select: none;
    overflow: auto;
    resize: none;
    white-space: normal;
    word-break: break-word;
    transition: background .16s ease, color .16s ease;
}

.letraspro li .font:focus {
    outline: none;
    background: var(--peach-50);
}

.letraspro li .font:active {
    background: var(--peach-100);
}

.letraspro p {
    position: absolute;
    bottom: 7px;
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: baseline;
    margin: 0;
    padding: 0;
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    pointer-events: none;
    cursor: default;
}

.flurshit {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--brand-soft);
    border-left: 1px solid var(--line);
    color: var(--peach-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .flurshit:hover {
        background: var(--brand);
        color: #fff;
    }
}

.flurshit:active {
    filter: brightness(.96);
}

.flourish-popup {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(60, 33, 22, .48);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: popFade .2s ease;
}

.flourish-popup.hidden {
    display: none;
}

.popup-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    max-height: 76vh;
    color: var(--ink);
    background: rgba(255, 253, 251, .97);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: popIn .24s cubic-bezier(.2, .8, .2, 1);
}

.popup-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px 15px 20px;
    background: var(--brand);
    color: #fff;
}

.popup-header h3 {
    margin: 0;
    font-family: var(--f-display);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #fff;
}

.popup-header button {
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border: none;
    border-radius: var(--pill);
    font-size: 15px;
    cursor: pointer;
    transition: background .16s ease, transform .12s ease;
}

@media (hover: hover) and (pointer: fine) {
    .popup-header button:hover {
        background: rgba(255, 255, 255, .34);
    }
}

.popup-header button:active {
    transform: scale(.9);
}

#flourishList {
    flex: 1;
    margin: 0;
    padding: 12px;
    list-style: none;
    overflow-y: auto;
}

#flourishList .อักษร-พิเศษ {
    padding: 4px;
    margin-bottom: 10px;
    background: var(--peach-50);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

#flourishList .count {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 6px;
    font-size: 11px;
    color: var(--muted);
}

#flourishList .font {
    padding: 15px;
    font-size: 1.15rem !important;
    color: var(--ink);
    text-align: center;
    border-radius: var(--radius-xs);
}

@media (hover: hover) and (pointer: fine) {
    #flourishList .อักษร-พิเศษ:hover p {
        color: var(--peach-600);
    }
}

#flourishList .copied-alert {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #1f8a63;
    opacity: 0;
    transition: opacity .2s ease;
}

#flourishList li.copied .copied-alert {
    opacity: 1;
}

.flourishit {
    text-align: center;
    padding: 12px 8px 18px;
}

#flourishRegenerate {
    width: auto;
    height: auto;
    padding: 15px 30px;
    color: #fff;
    background: var(--brand-deep);
    border: none;
    border-radius: var(--pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    #flourishRegenerate:hover {
        filter: brightness(1.06);
        box-shadow: var(--shadow-lg);
    }
}

#flourishRegenerate:active {
    transform: scale(.95);
}

#flourishRegenerate:focus {
    outline: none;
}

.select-flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px;
    flex-wrap: wrap;
}

.select-flourish label {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

#flourishSelect {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 44px 12px 18px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--peach-500) 50%),
        linear-gradient(135deg, var(--peach-500) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    border: 1.5px solid var(--line);
    border-radius: var(--pill);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    #flourishSelect:hover {
        border-color: var(--peach-300);
    }
}

#flourishSelect:focus {
    outline: none;
    border-color: var(--peach-400);
    box-shadow: var(--ring);
}

.buttons {
    position: fixed;
    right: 0;
    bottom: 130px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(255, 252, 249, .94);
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 20px 0 0 20px;
    box-shadow: var(--shadow-md);
}

.buttons button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    transition: background .16s ease, transform .12s ease;
}

@media (hover: hover) and (pointer: fine) {
    .buttons button:hover {
        background: var(--peach-50);
    }
}

.buttons button:active {
    transform: scale(.9);
    background: var(--peach-100);
}

svg {
    width: 20px;
    height: 20px;
    stroke: var(--muted);
    stroke-width: 1.7;
    fill: none;
}

#bulbBtn svg {
    stroke: var(--apricot);
}

.copied {
    display: block;
    position: fixed;
    top: 12%;
    right: 0;
    z-index: 999;
    width: 250px;
    padding: 15px 18px;
    color: var(--ink);
    background: rgba(255, 253, 251, .97);
    border: 1px solid var(--peach-200);
    border-right: none;
    border-radius: 18px 0 0 18px;
    box-shadow: var(--shadow-lg);
    animation: slideIn .24s ease;
}

.copied p {
    margin: 0;
    max-height: 100px;
    overflow: auto;
    font-weight: 600;
}

.copied-info {
    position: absolute;
    top: 8px;
    left: 12px;
    padding: 5px 12px;
    color: #fff;
    background: var(--peach-500);
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
    animation: fadeInOut .2s ease;
}

.close-button {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    padding: 6px 18px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    font-size: 26px;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}

.f-m-q,
.f-m {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    overflow-y: auto;
    background:
        radial-gradient(700px 340px at 100% 0%, #ffe0cc 0%, rgba(255, 224, 204, 0) 60%),
        radial-gradient(700px 340px at 0% 0%, #fff0e2 0%, rgba(255, 240, 226, 0) 60%),
        var(--page);
    transition: right .3s ease;
}

#menusec {
    padding: 64px 18px 28px;
}

#fMN {
    overflow: auto;
}

.content-sec {
    max-width: 1040px;
    margin: 26px auto 0;
    padding: 0 18px;
}

.content-sec h3 {
    margin: 20px 0 8px;
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--ink);
}

.info-text {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px;
    color: var(--ink-soft);
}

.info-text ul {
    overflow: auto;
}

.info-text img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.ads {
    display: block;
    width: 100%;
    margin: 10px 0;
    height: auto;
    clear: both;
}

.loadmore {
    text-align: center;
    margin: 22px 0;
}

#randombutton {
    width: auto;
    height: auto;
    margin-top: 10px;
    padding: 16px 32px;
    color: #fff;
    background: var(--brand-deep);
    border: none;
    border-radius: var(--pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    transition: transform .12s ease, box-shadow .18s ease, filter .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    #randombutton:hover {
        filter: brightness(1.06);
        box-shadow: var(--shadow-lg);
    }
}

#randombutton:active {
    transform: scale(.96);
}

.page-load-status,
.aryapage {
    display: none;
    align-items: center;
    width: 100%;
}

.loader {
    position: fixed;
    bottom: 15%;
    left: 10%;
    width: 120px;
    height: 20px;
    background: linear-gradient(#ffc46b 50%, #0000 0), linear-gradient(#0000 50%, #ff9d74 0), linear-gradient(#ff9d74 50%, #0000 0), linear-gradient(#0000 50%, #f97e4e 0), linear-gradient(#f97e4e 50%, #0000 0), linear-gradient(#0000 50%, #ffc46b 0) var(--mist);
    background-size: calc(100%/6 + 1px) 200%;
    background-repeat: no-repeat;
    border-radius: var(--pill);
    animation: l12 2s infinite;
}

footer {
    margin-top: 40px;
    padding: 28px 0;
    color: #f7e7dd;
    background: linear-gradient(135deg, #3a251c 0%, #57342a 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 18px;
}

footer a {
    color: var(--peach-300);
    text-decoration: none;
    font-weight: 600;
    transition: color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    footer a:hover {
        color: #fff;
        text-decoration: underline;
    }
}

@keyframes fadeInOut {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes l12 {
    0% {
        background-position: calc(0*100%/5) 100%, calc(1*100%/5) 0%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%;
    }

    16.67% {
        background-position: calc(0*100%/5) 0%, calc(1*100%/5) 0%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%;
    }

    33.33% {
        background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 100%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%;
    }

    50% {
        background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 0%, calc(4*100%/5) 100%, calc(5*100%/5) 0%;
    }

    66.67% {
        background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 100%, calc(5*100%/5) 0%;
    }

    83.33% {
        background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 0%, calc(5*100%/5) 0%;
    }

    100% {
        background-position: calc(0*100%/5) 0%, calc(1*100%/5) 100%, calc(2*100%/5) 0%, calc(3*100%/5) 100%, calc(4*100%/5) 0%, calc(5*100%/5) 100%;
    }
}

@media (min-width: 721px) {

    .brand h1,
    h1.entry-title {
        font-size: 1.95rem;
    }

    .grid ul,
    .letraspro {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .popup-box .grid ul,
    .popup-box .letraspro {
        grid-template-columns: repeat(1, 1fr);
    }

    #randomcloud {
        height: 96px;
    }

    .info-text img {
        max-width: 75%;
    }
}

@media (max-width: 640px) {

    .input-section textarea,
    #flourishSelect {
        font-size: 16px;
    }

    .input-section .container {
        padding: 12px 14px;
    }

    .font-size-controller input[type="range"] {
        width: 145px;
    }

    .grid ul,
    .letraspro {
        padding: 0;
        gap: 12px;
    }

    .letraspro li .font {
        font-size: 1rem;
        padding: 18px 16px 26px;
    }

    .buttons {
        bottom: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}