/* =========================================================
   DRAGON NAME GENERATOR
   FINAL PROFESSIONAL DARK FANTASY UI
========================================================= */


/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {

    --dragon-bg: #080705;
    --dragon-bg-2: #0c0906;

    --dragon-panel: #12100c;
    --dragon-panel-light: #18130d;

    --dragon-border: rgba(216, 170, 69, 0.16);
    --dragon-border-hover: rgba(224, 181, 83, 0.38);
    --dragon-border-strong: rgba(224, 181, 83, 0.52);

    --dragon-text: #f6eddc;
    --dragon-text-soft: #d8cbb8;
    --dragon-text-muted: #a69783;
    --dragon-text-dark: #756b5e;

    --dragon-gold: #d8aa45;
    --dragon-gold-light: #ffe09a;
    --dragon-gold-soft: #e9c16d;

    --dragon-red: #781522;
    --dragon-red-light: #941d2b;
    --dragon-red-dark: #581018;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-panel:
        0 24px 60px rgba(0, 0, 0, 0.32);

    --shadow-deep:
        0 30px 75px rgba(0, 0, 0, 0.46);
}


/* =========================================================
   PAGE
========================================================= */

html {
    scroll-behavior: smooth;
}


body.dragon-tool-page {

    width: 100%;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    color: var(--dragon-text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:

        radial-gradient(
            circle at 50% -5%,
            rgba(122, 63, 25, 0.12),
            transparent 32%
        ),

        radial-gradient(
            circle at 5% 48%,
            rgba(112, 20, 30, 0.055),
            transparent 26%
        ),

        linear-gradient(
            180deg,
            #090704 0%,
            #0b0805 45%,
            #070604 100%
        );
}


body.dragon-tool-page *,
body.dragon-tool-page *::before,
body.dragon-tool-page *::after {
    box-sizing: border-box;
}


body.dragon-tool-page img {
    max-width: 100%;
}


/* =========================================================
   MAIN TOOL WRAPPER
========================================================= */

.dragon-tool-shell {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        0 auto;

    padding:
        52px 0 88px;
}


/* =========================================================
   HERO
========================================================= */

.tool-hero {

    position: relative;

    min-height: 390px;

    display: flex;
    align-items: flex-end;

    margin-bottom: 30px;

    overflow: hidden;

    isolation: isolate;

    border:
        1px solid
        rgba(216, 170, 69, 0.20);

    border-radius:
        var(--radius-lg);

    background:
        #0b0805;

    box-shadow:
        0 26px 65px
        rgba(0, 0, 0, 0.42);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* HERO IMAGE */

.tool-hero-image {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    transform:
        scale(1.01);

    filter:
        brightness(1.83)
        contrast(1.09)
        saturate(1.14);

    transition:
        transform 0.75s ease,
        filter 0.55s ease;
}


/* HERO OVERLAY */

.tool-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:

        linear-gradient(
            90deg,
            rgba(6, 4, 2, 0.79) 0%,
            rgba(6, 4, 2, 0.55) 40%,
            rgba(6, 4, 2, 0.13) 72%,
            rgba(6, 4, 2, 0.19) 100%
        ),

        linear-gradient(
            0deg,
            rgba(5, 4, 2, 0.70) 0%,
            transparent 66%
        );

    transition:
        opacity 0.4s ease;
}


/* HERO CONTENT */

.tool-hero-content {

    position: relative;

    z-index: 2;

    width:
        min(
            700px,
            100%
        );

    padding:
        58px 56px;
}


/* HERO KICKER */

.hero-kicker {

    display: block;

    margin-bottom: 13px;

    color:
        var(--dragon-gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.19em;

    text-transform: uppercase;

    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, 0.45);
}


/* HERO HEADING */

.tool-hero h1 {

    margin:
        0 0 17px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            44px,
            5.4vw,
            68px
        );

    font-weight: 700;

    line-height: 1.01;

    letter-spacing: -0.035em;

    background:
        linear-gradient(
            180deg,
            #fff4c8 0%,
            #f4d480 36%,
            #dda343 70%,
            #ffe09a 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color:
        #edc96d;

    filter:
        drop-shadow(
            0 5px 20px
            rgba(0, 0, 0, 0.25)
        );
}


/* HERO DESCRIPTION */

.tool-hero p {

    max-width: 630px;

    margin: 0;

    color:
        #e0d4c2;

    font-size: 17px;

    line-height: 1.76;

    text-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.38);
}


/* =========================================================
   HERO HOVER
========================================================= */

.tool-hero:hover,
.tool-hero.hero-active {

    transform:
        translateY(-3px);

    border-color:
        rgba(229, 181, 75, 0.52);

    box-shadow:
        var(--shadow-deep),
        0 0 38px
        rgba(216, 170, 69, 0.10);
}


.tool-hero:hover .tool-hero-image,
.tool-hero.hero-active .tool-hero-image {

    transform:
        scale(1.05);

    filter:
        brightness(2.48)
        contrast(1.10)
        saturate(1.21);
}


/* =========================================================
   COMMON PANELS
========================================================= */

.generator-panel,
.result-card,
.history-card,
.favorites-card,
.faq-section {

    border:
        1px solid
        var(--dragon-border);

    background:
        linear-gradient(
            145deg,
            rgba(24, 19, 13, 0.94),
            rgba(11, 9, 7, 0.97)
        );

    box-shadow:
        var(--shadow-panel);
}


/* =========================================================
   GENERATOR PANEL
========================================================= */

.generator-panel {

    position: relative;

    margin-bottom: 30px;

    padding: 38px;

    overflow: hidden;

    border-radius:
        var(--radius-lg);

    background:

        radial-gradient(
            circle at 50% -15%,
            rgba(216, 170, 69, 0.08),
            transparent 38%
        ),

        linear-gradient(
            145deg,
            #17130e,
            #0c0a07
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.generator-panel:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(216, 170, 69, 0.34);

    box-shadow:
        0 28px 65px
        rgba(0, 0, 0, 0.38),

        0 0 28px
        rgba(216, 170, 69, 0.045);
}


/* =========================================================
   PANEL HEADINGS
========================================================= */

.panel-heading {

    max-width: 700px;

    margin-bottom: 31px;
}


.panel-kicker,
.card-kicker {

    display: block;

    margin-bottom: 8px;

    color:
        var(--dragon-gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.panel-heading h2,
.card-heading h2,
#dragonName {

    background:
        linear-gradient(
            180deg,
            #fff4c8 0%,
            #f3d382 36%,
            #d99f3f 70%,
            #f9d986 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color:
        #edc96d;
}


.panel-heading h2 {

    margin:
        0 0 9px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            28px,
            3vw,
            36px
        );

    font-weight: 700;

    line-height: 1.15;
}


.panel-heading p {

    margin: 0;

    color:
        var(--dragon-text-soft);

    font-size: 14px;

    line-height: 1.72;
}


/* =========================================================
   FILTERS
========================================================= */

.filters {

    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 20px;
}


.filter-group {

    min-width: 0;

    transition:
        transform 0.22s ease;
}


.filter-group:hover {

    transform:
        translateY(-2px);
}


.filter-group label {

    display: block;

    margin-bottom: 8px;

    color:
        #d0bc98;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.10em;

    text-transform: uppercase;

    transition:
        color 0.2s ease;
}


.filter-group:hover label {

    color:
        #efd381;
}


.filters select {

    width: 100%;
    height: 49px;

    min-width: 0;

    padding:
        0 38px
        0 13px;

    border:
        1px solid
        rgba(216, 170, 69, 0.22);

    border-radius:
        var(--radius-sm);

    outline: none;

    background-color:
        #0d0b08;

    color:
        #dfd2bf;

    font: inherit;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease;
}


.filters select:hover {

    background:
        #18130e;

    border-color:
        rgba(232, 190, 98, 0.52);

    color:
        #f1dfc1;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.20);
}


.filters select:focus {

    background:
        #18130e;

    border-color:
        var(--dragon-gold);

    box-shadow:
        0 0 0 3px
        rgba(216, 170, 69, 0.09);
}


/* =========================================================
   GENERATE BUTTON
========================================================= */

.generate-btn {

    position: relative;

    width: 100%;
    min-height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    overflow: hidden;

    border:
        1px solid
        #cda044;

    border-radius:
        8px;

    background:
        linear-gradient(
            180deg,
            #921b29 0%,
            #68111b 55%,
            #781522 100%
        );

    color:
        #fff1d2;

    box-shadow:
        0 12px 28px
        rgba(83, 11, 18, 0.31),

        inset 0 1px 0
        rgba(255, 229, 169, 0.18);

    font-size: 16px;

    font-weight: 850;

    letter-spacing: 0.01em;

    cursor: pointer;

    isolation: isolate;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* INNER GOLD EDGE */

.generate-btn::after {

    content: "";

    position: absolute;

    inset: 3px;

    z-index: 0;

    border:
        1px solid
        rgba(255, 220, 140, 0.18);

    border-radius:
        5px;

    pointer-events: none;
}


/* SHINE */

.generate-btn::before {

    content: "";

    position: absolute;

    top: 0;
    left: -45%;

    width: 27%;
    height: 100%;

    z-index: 0;

    background:
        linear-gradient(
            110deg,
            transparent,
            rgba(255, 239, 186, 0.24),
            transparent
        );

    transform:
        skewX(-22deg);

    transition:
        left 0.68s ease;

    pointer-events: none;
}


.generate-btn:hover {

    transform:
        translateY(-2px);

    border-color:
        #efc664;

    background:
        linear-gradient(
            180deg,
            #a22131 0%,
            #761622 54%,
            #891b29 100%
        );

    box-shadow:
        0 17px 36px
        rgba(83, 11, 18, 0.39),

        0 0 25px
        rgba(216, 170, 69, 0.12);
}


.generate-btn:hover::before {

    left:
        125%;
}


.generate-btn:active {

    transform:
        translateY(1px)
        scale(0.995);
}


.generate-btn:disabled {

    opacity: 0.64;

    cursor: wait;

    transform: none;
}


.generate-btn > span {

    position: relative;

    z-index: 2;
}


.generate-icon {

    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.generate-icon img {

    width: 27px;
    height: 27px;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 7px
            rgba(255, 211, 107, 0.14)
        );
}


/* =========================================================
   SEARCH UTILITY
========================================================= */

.search-utility {

    margin-top: 27px;

    padding-top: 24px;

    display: grid;

    grid-template-columns:
        minmax(190px, 0.55fr)
        minmax(300px, 1fr);

    align-items: center;

    gap: 26px;

    border-top:
        1px solid
        rgba(216, 170, 69, 0.14);
}


.search-copy {

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.search-copy strong {

    color:
        #e1c98f;

    font-size: 13px;

    font-weight: 750;
}


.search-copy span {

    color:
        var(--dragon-text-muted);

    font-size: 12px;
}


.search-box {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 9px;
}


.search-box input {

    width: 100%;
    min-width: 0;
    height: 47px;

    padding:
        0 14px;

    border:
        1px solid
        rgba(216, 170, 69, 0.22);

    border-radius:
        var(--radius-sm);

    outline: none;

    background:
        #0d0b08;

    color:
        var(--dragon-text);

    font: inherit;

    font-size: 13px;

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


.search-box input::placeholder {

    color:
        #73695c;
}


.search-box input:hover {

    background:
        #15110d;

    border-color:
        rgba(216, 170, 69, 0.38);
}


.search-box input:focus {

    background:
        #15110d;

    border-color:
        var(--dragon-gold);

    box-shadow:
        0 0 0 3px
        rgba(216, 170, 69, 0.09);
}


.search-btn {

    min-width: 108px;

    padding:
        0 19px;

    border:
        1px solid
        rgba(216, 170, 69, 0.32);

    border-radius:
        var(--radius-sm);

    background:
        linear-gradient(
            180deg,
            #211a12,
            #15100c
        );

    color:
        #efd18b;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.search-btn:hover {

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            180deg,
            #2c2116,
            #1b140e
        );

    border-color:
        rgba(231, 187, 90, 0.60);

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.24);
}


.search-btn:active {

    transform:
        translateY(1px);
}


.search-btn:disabled {

    opacity: 0.6;

    cursor: wait;

    transform: none;
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {

    position: relative;

    margin-bottom: 30px;

    padding: 38px;

    overflow: hidden;

    border-radius:
        var(--radius-lg);

    background:

        radial-gradient(
            circle at 5% 10%,
            rgba(216, 170, 69, 0.06),
            transparent 27%
        ),

        linear-gradient(
            145deg,
            #16120d,
            #0b0907
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.result-card:hover {

    border-color:
        rgba(216, 170, 69, 0.29);

    box-shadow:
        0 28px 68px
        rgba(0, 0, 0, 0.38);
}


.result-top {

    margin-bottom: 22px;

    padding-bottom: 15px;

    border-bottom:
        1px solid
        rgba(216, 170, 69, 0.14);
}


.result-label {

    color:
        var(--dragon-gold);

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.18em;
}


/* =========================================================
   RESULT GRID
========================================================= */

.result-grid {

    display: grid;

    grid-template-columns:
        minmax(310px, 0.88fr)
        minmax(0, 1.12fr);

    align-items: center;

    gap: 40px;
}


/* =========================================================
   DRAGON ARTWORK FRAME
========================================================= */

.dragon-visual {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    padding: 4px;

    overflow: hidden;

    border: 0;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #e0b455 0%,
            #604722 27%,
            #171009 63%,
            #c89439 100%
        );

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.48),

        0 0 25px
        rgba(216, 170, 69, 0.08);

    transition:
        transform 0.38s ease,
        box-shadow 0.38s ease;
}


.dragon-visual::after {

    content: "";

    position: absolute;

    inset: 4px;

    border:
        1px solid
        rgba(255, 229, 160, 0.14);

    border-radius: 14px;

    pointer-events: none;
}


.dragon-visual img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 14px;

    filter:
        brightness(1.13)
        contrast(1.08)
        saturate(1.13);

    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}


.dragon-visual:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 32px 70px
        rgba(0, 0, 0, 0.52),

        0 0 35px
        rgba(216, 170, 69, 0.16);
}


.dragon-visual:hover img {

    transform:
        scale(1.04);

    filter:
        brightness(1.24)
        contrast(1.09)
        saturate(1.19);
}


/* =========================================================
   DRAGON INFO
========================================================= */

.dragon-info {

    min-width: 0;
}


.name-label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--dragon-gold);

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 0.18em;
}


#dragonName {

    margin:
        0 0 14px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            38px,
            4.2vw,
            54px
        );

    font-weight: 700;

    line-height: 1.04;

    overflow-wrap: anywhere;

    filter:
        drop-shadow(
            0 5px 18px
            rgba(216, 170, 69, 0.08)
        );
}


#dragonDescription {

    max-width: 620px;

    margin: 0;

    color:
        var(--dragon-text-soft);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   RESULT META
========================================================= */

.dragon-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin:
        23px 0;
}


.dragon-meta span {

    min-height: 35px;

    display: inline-flex;

    align-items: center;

    padding:
        0 13px;

    border:
        1px solid
        rgba(216, 170, 69, 0.18);

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #18130e,
            #100d09
        );

    color:
        #d6c4a6;

    font-size: 11px;

    font-weight: 750;

    transition:
        transform 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}


.dragon-meta span:hover {

    transform:
        translateY(-2px);

    color:
        #f0d589;

    border-color:
        rgba(216, 170, 69, 0.42);

    background:
        #1d160f;
}


/* =========================================================
   DRAGON DETAILS
========================================================= */

.dragon-details {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.detail-item {

    min-width: 0;

    padding:
        15px;

    border:
        1px solid
        rgba(216, 170, 69, 0.14);

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #120f0b,
            #0d0a08
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.detail-item:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(224, 179, 79, 0.40);

    background:
        linear-gradient(
            145deg,
            #1b150e,
            #100c08
        );

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.23);
}


.detail-item small {

    display: block;

    margin-bottom: 5px;

    color:
        #948773;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 0.12em;

    transition:
        color 0.22s ease;
}


.detail-item strong {

    display: block;

    overflow: hidden;

    color:
        #e4d7c5;

    font-size: 13px;

    font-weight: 750;

    white-space: nowrap;

    text-overflow: ellipsis;

    transition:
        color 0.22s ease;
}


.detail-item:hover small {

    color:
        #d9ab4b;
}


.detail-item:hover strong {

    color:
        #f4e7d1;
}


/* =========================================================
   RESULT ACTION BUTTONS
========================================================= */

.action-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 23px;
}


#copyBtn,
#favoriteBtn {

    min-height: 44px;

    padding:
        0 18px;

    border-radius:
        var(--radius-sm);

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* COPY */

#copyBtn {

    border:
        1px solid
        rgba(216, 170, 69, 0.24);

    background:
        linear-gradient(
            180deg,
            #18130e,
            #100d09
        );

    color:
        #e9d09a;
}


#copyBtn:hover {

    transform:
        translateY(-2px);

    background:
        #21190f;

    border-color:
        rgba(216, 170, 69, 0.48);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.25);
}


/* FAVORITE */

#favoriteBtn {

    border:
        1px solid
        rgba(216, 170, 69, 0.32);

    background:
        linear-gradient(
            180deg,
            #7b1723,
            #5e1018
        );

    color:
        #f3dcb0;
}


#favoriteBtn:hover {

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            180deg,
            #911d2b,
            #701521
        );

    border-color:
        rgba(229, 181, 75, 0.56);

    box-shadow:
        0 11px 26px
        rgba(89, 12, 20, 0.30);
}


#copyBtn:active,
#favoriteBtn:active {

    transform:
        translateY(1px)
        scale(0.98);
}


/* =========================================================
   HISTORY + VAULT GRID
========================================================= */

.collections-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 30px;
}


.history-card,
.favorites-card {

    min-width: 0;

    padding: 27px;

    border-radius:
        var(--radius-md);

    background:
        linear-gradient(
            145deg,
            #14100c,
            #0b0907
        );

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}


.history-card:hover,
.favorites-card:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(216, 170, 69, 0.31);

    box-shadow:
        0 22px 48px
        rgba(0, 0, 0, 0.31);
}


/* =========================================================
   COLLECTION HEADINGS
========================================================= */

.card-heading {

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 16px;
}


.card-heading h2 {

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;

    font-weight: 700;

    line-height: 1.15;
}


.card-note {

    margin-top: 4px;

    color:
        #847a6d;

    font-size: 10px;

    text-align: right;
}


/* =========================================================
   HISTORY / FAVORITES LISTS
========================================================= */

#historyList,
#favoriteList {

    list-style: none;

    margin: 0;

    padding: 0;
}


#historyList {

    max-height: 270px;

    overflow-y: auto;
}


#historyList li,
#favoriteList li {

    min-height: 44px;

    padding:
        10px 5px;

    display: flex;

    align-items: center;

    border-bottom:
        1px solid
        rgba(216, 170, 69, 0.09);

    color:
        #c0b19d;

    font-size: 13px;

    transition:
        color 0.22s ease,
        background 0.22s ease,
        padding-left 0.22s ease;
}


#historyList li:last-child,
#favoriteList li:last-child {

    border-bottom: 0;
}


#historyList li:hover,
#favoriteList li:hover {

    padding-left:
        11px;

    color:
        #efd28a;

    background:
        linear-gradient(
            90deg,
            rgba(216, 170, 69, 0.065),
            transparent
        );
}


#favoriteList li {

    justify-content: space-between;

    gap: 12px;
}


.empty-state {

    color:
        #7f7568 !important;

    font-style: italic;
}


/* =========================================================
   REMOVE FAVORITE BUTTON
========================================================= */

.remove-favorite {

    flex-shrink: 0;

    width: 31px;
    height: 31px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(190, 74, 82, 0.28);

    border-radius: 7px;

    background:
        rgba(111, 20, 30, 0.34);

    color:
        #dc949a;

    font-size: 17px;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.remove-favorite:hover {

    transform:
        scale(1.08);

    background:
        rgba(148, 29, 43, 0.62);

    border-color:
        rgba(220, 104, 112, 0.48);

    color:
        #fff;
}


/* =========================================================
   FAQ SECTION
========================================================= */

.faq-section {

    position: relative;

    margin-bottom: 30px;

    padding: 40px;

    overflow: hidden;

    isolation: isolate;

    border-radius:
        var(--radius-lg);

    background:

        radial-gradient(
            circle at 92% 0%,
            rgba(216, 170, 69, 0.10),
            transparent 31%
        ),

        radial-gradient(
            circle at 3% 100%,
            rgba(117, 23, 35, 0.09),
            transparent 31%
        ),

        linear-gradient(
            145deg,
            #16120d,
            #0b0907
        );
}


/* FAQ SUBTLE GLOW */

.faq-section::after {

    content: "";

    position: absolute;

    top: -120px;
    right: -100px;

    width: 280px;
    height: 280px;

    z-index: -1;

    border-radius: 50%;

    background:
        rgba(216, 170, 69, 0.055);

    filter:
        blur(65px);

    pointer-events: none;
}


.faq-section .panel-heading {

    margin-bottom: 27px;
}


/* =========================================================
   FAQ LIST
========================================================= */

.faq-list {

    display: grid;

    gap: 10px;
}


/* =========================================================
   FAQ ITEM
========================================================= */

.faq-item {

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(216, 170, 69, 0.14);

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(25, 20, 14, 0.78),
            rgba(10, 8, 6, 0.96)
        );

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease;
}


/* FAQ LEFT GOLD BAR */

.faq-item::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 0;

    background:
        linear-gradient(
            180deg,
            #ffe28f,
            #b67b27
        );

    transition:
        height 0.3s ease;
}


.faq-item:hover {

    transform:
        translateX(4px);

    border-color:
        rgba(224, 181, 83, 0.34);

    box-shadow:
        0 13px 30px
        rgba(0, 0, 0, 0.23),

        0 0 18px
        rgba(216, 170, 69, 0.045);
}


.faq-item:hover::before,
.faq-item[open]::before {

    height: 100%;
}


.faq-item[open] {

    border-color:
        rgba(224, 181, 83, 0.38);

    background:
        linear-gradient(
            145deg,
            rgba(39, 30, 17, 0.86),
            rgba(11, 8, 6, 0.98)
        );

    box-shadow:
        0 15px 34px
        rgba(0, 0, 0, 0.24);
}


/* =========================================================
   FAQ QUESTION
========================================================= */

.faq-item summary {

    position: relative;

    padding:
        18px 50px
        18px 18px;

    list-style: none;

    color:
        #e7dac6;

    font-size: 14px;

    font-weight: 750;

    line-height: 1.5;

    cursor: pointer;

    user-select: none;

    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}


.faq-item summary::-webkit-details-marker {

    display: none;
}


.faq-item summary::after {

    content: "+";

    position: absolute;

    top: 50%;
    right: 19px;

    transform:
        translateY(-50%);

    color:
        #e4b94e;

    font-size: 21px;

    font-weight: 400;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.faq-item:hover summary,
.faq-item[open] summary {

    color:
        #f2cc6d;

    padding-left:
        22px;
}


.faq-item[open] summary::after {

    content: "−";

    color:
        #ffe18e;
}


/* =========================================================
   FAQ ANSWER
========================================================= */

.faq-item p {

    margin: 0;

    padding:
        0 19px
        19px 22px;

    color:
        #b3a897;

    font-size: 13px;

    line-height: 1.78;
}


.faq-item[open] p {

    animation:
        dragonFaqOpen
        0.3s ease;
}


@keyframes dragonFaqOpen {

    from {

        opacity: 0;

        transform:
            translateY(-7px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   HOMEPAGE STYLE FOOTER
========================================================= */

.about-footer {

    width: 100%;

    margin-top: 20px;

    padding:

        54px
        max(
            24px,
            calc(
                (100% - 1180px) / 2
            )
        )
        24px;

    display: grid;

    grid-template-columns:
        minmax(280px, 1.45fr)
        0.72fr
        1fr
        1fr;

    gap: 46px;

    color:
        #b9ad9b;

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(216, 170, 69, 0.045),
            transparent 25%
        ),

        linear-gradient(
            180deg,
            rgba(10, 8, 6, 0.96),
            #070605
        );

    border-top:
        1px solid
        rgba(216, 170, 69, 0.23);

    box-shadow:
        inset 0 1px 0
        rgba(255, 226, 158, 0.025);
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.about-footer .footer-brand {

    min-width: 0;
}


.about-footer .footer-brand-logo {

    display: inline-flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 18px;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


.about-footer .footer-brand-logo:hover {

    transform:
        translateY(-3px);

    filter:
        drop-shadow(
            0 0 17px
            rgba(216, 170, 69, 0.14)
        );
}


.about-footer .footer-logo-image {

    width: 51px;
    height: 51px;

    display: block;

    object-fit: contain;
}


.about-footer .footer-logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1;
}


.about-footer .footer-logo-main {

    background:
        linear-gradient(
            180deg,
            #ffe09a,
            #d8a63d
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    font-weight: 750;

    letter-spacing: 0.06em;
}


.about-footer .footer-logo-sub {

    margin-top: 5px;

    color:
        #a19480;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.22em;
}


.about-footer .footer-brand p {

    max-width: 350px;

    margin: 0;

    color:
        #998c7a;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   FOOTER COLUMNS
========================================================= */

.about-footer .footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}


.about-footer .footer-column h3 {

    margin:
        0 0 7px;

    color:
        #d6aa4e;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 0.16em;
}


.about-footer .footer-column a {

    position: relative;

    color:
        #9b8f7e;

    font-size: 12px;

    text-decoration: none;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}


.about-footer .footer-column a:hover {

    color:
        #efd386;

    transform:
        translateX(4px);
}


.about-footer .footer-column p {

    max-width: 225px;

    margin: 0;

    color:
        #928777;

    font-size: 12px;

    line-height: 1.75;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.about-footer .footer-bottom {

    grid-column:
        1 / -1;

    margin-top: 13px;

    padding-top: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        rgba(216, 170, 69, 0.11);

    color:
        #71685e;

    font-size: 10px;
}


/* =========================================================
   TOAST
========================================================= */

.dragon-toast {

    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 99999;

    max-width:
        min(
            390px,
            calc(100vw - 32px)
        );

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        13px 15px;

    border:
        1px solid
        rgba(216, 170, 69, 0.27);

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #1b160f,
            #110d09
        );

    color:
        #eadfcf;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.45);

    font-size: 12px;

    opacity: 0;

    transform:
        translateY(10px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.dragon-toast.show {

    opacity: 1;

    transform:
        translateY(0);
}


.dragon-toast-icon {

    width: 23px;
    height: 23px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--dragon-gold);

    color:
        #0d0a07;

    font-weight: 900;
}


.dragon-toast-error {

    border-color:
        rgba(190, 70, 80, 0.40);
}


.dragon-toast-error .dragon-toast-icon {

    background:
        #b75b64;

    color: #fff;
}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

.dragon-tool-page button:focus-visible,
.dragon-tool-page input:focus-visible,
.dragon-tool-page select:focus-visible,
.dragon-tool-page summary:focus-visible,
.about-footer a:focus-visible {

    outline:
        2px solid
        var(--dragon-gold);

    outline-offset: 3px;
}


/* =========================================================
   HISTORY SCROLLBAR
========================================================= */

#historyList::-webkit-scrollbar {

    width: 5px;
}


#historyList::-webkit-scrollbar-track {

    background:
        #0b0907;
}


#historyList::-webkit-scrollbar-thumb {

    border-radius:
        999px;

    background:
        linear-gradient(
            #8f652c,
            #d0a344
        );
}


/* =========================================================
   TEXT SELECTION
========================================================= */

::selection {

    color: #fff;

    background:
        rgba(
            118,
            23,
            35,
            0.75
        );
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 980px) {

    .filters {

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    .result-grid {

        grid-template-columns:
            minmax(280px, 0.84fr)
            minmax(0, 1.16fr);

        gap: 30px;
    }


    .about-footer {

        grid-template-columns:
            1fr 1fr;

        padding:
            46px 28px
            23px;
    }


    .about-footer .footer-brand {

        grid-column:
            1 / -1;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {

    .dragon-tool-shell {

        width:
            min(
                calc(100% - 28px),
                1180px
            );

        padding:
            34px 0
            65px;
    }


    /* HERO */

    .tool-hero {

        min-height: 355px;
    }


    .tool-hero-content {

        width: 100%;

        padding:
            42px 30px;
    }


    .tool-hero-overlay {

        background:

            linear-gradient(
                0deg,
                rgba(5, 4, 2, 0.89) 0%,
                rgba(5, 4, 2, 0.49) 67%,
                rgba(5, 4, 2, 0.20) 100%
            ),

            linear-gradient(
                90deg,
                rgba(5, 4, 2, 0.45),
                rgba(5, 4, 2, 0.10)
            );
    }


    /* PANELS */

    .generator-panel,
    .result-card,
    .faq-section {

        padding: 29px;
    }


    /* FILTERS */

    .filters {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    /* SEARCH */

    .search-utility {

        grid-template-columns:
            1fr;

        gap: 14px;
    }


    /* RESULT */

    .result-grid {

        grid-template-columns:
            1fr;

        gap: 28px;
    }


    .dragon-visual {

        width: 100%;

        max-width: 520px;

        margin:
            0 auto;
    }


    /* COLLECTIONS */

    .collections-grid {

        grid-template-columns:
            1fr;
    }


    /* FOOTER */

    .about-footer {

        grid-template-columns:
            1fr 1fr;

        gap: 34px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .dragon-tool-shell {

        width:
            min(
                calc(100% - 20px),
                1180px
            );

        padding:
            20px 0
            55px;
    }


    /* HERO */

    .tool-hero {

        min-height: 405px;

        border-radius: 13px;
    }


    .tool-hero-content {

        padding:
            34px 20px;
    }


    .hero-kicker {

        font-size: 9px;

        letter-spacing: 0.14em;
    }


    .tool-hero h1 {

        font-size: 39px;

        line-height: 1.02;
    }


    .tool-hero p {

        font-size: 14px;

        line-height: 1.7;
    }


    /* DISABLE MOVING HERO CARD ON TOUCH */

    .tool-hero:hover,
    .tool-hero.hero-active {

        transform: none;
    }


    /* PANELS */

    .generator-panel,
    .result-card,
    .faq-section {

        padding:
            23px 16px;

        border-radius: 13px;
    }


    .generator-panel:hover {

        transform: none;
    }


    /* HEADINGS */

    .panel-heading h2 {

        font-size: 26px;
    }


    /* FILTERS */

    .filters {

        grid-template-columns:
            1fr;
    }


    .filter-group:hover {

        transform: none;
    }


    /* GENERATE */

    .generate-btn {

        min-height: 55px;

        font-size: 15px;
    }


    /* SEARCH */

    .search-box {

        grid-template-columns:
            1fr;
    }


    .search-btn {

        min-height: 45px;
    }


    /* RESULT */

    .result-grid {

        gap: 25px;
    }


    #dragonName {

        font-size: 35px;
    }


    .dragon-details {

        grid-template-columns:
            1fr;
    }


    .detail-item:hover {

        transform: none;
    }


    /* ACTIONS */

    .action-buttons {

        flex-direction:
            column;
    }


    #copyBtn,
    #favoriteBtn {

        width: 100%;
    }


    /* COLLECTIONS */

    .history-card,
    .favorites-card {

        padding:
            22px 16px;
    }


    .history-card:hover,
    .favorites-card:hover {

        transform: none;
    }


    .card-heading {

        flex-direction:
            column;

        gap: 6px;
    }


    .card-note {

        text-align: left;
    }


    /* FAQ */

    .faq-section {

        padding:
            26px 16px;
    }


    .faq-item:hover {

        transform: none;
    }


    .faq-item summary {

        padding:
            17px 46px
            17px 15px;

        font-size: 13px;
    }


    .faq-item:hover summary,
    .faq-item[open] summary {

        padding-left: 18px;
    }


    .faq-item p {

        padding:
            0 15px
            18px 18px;

        font-size: 12.5px;
    }


    /* FOOTER */

    .about-footer {

        grid-template-columns:
            1fr;

        gap: 30px;

        padding:
            39px 22px
            22px;
    }


    .about-footer .footer-brand {

        grid-column: auto;
    }


    .about-footer .footer-bottom {

        flex-direction:
            column;

        align-items:
            flex-start;

        gap: 7px;
    }


    /* TOAST */

    .dragon-toast {

        left: 16px;
        right: 16px;
        bottom: 16px;

        max-width: none;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .tool-hero {

        min-height: 390px;
    }


    .tool-hero h1 {

        font-size: 34px;
    }


    .tool-hero p {

        font-size: 13.5px;
    }


    .generator-panel,
    .result-card,
    .faq-section {

        padding:
            20px 14px;
    }


    #dragonName {

        font-size: 31px;
    }


    .about-footer {

        padding-left: 18px;
        padding-right: 18px;
    }


    .about-footer .footer-logo-image {

        width: 46px;
        height: 46px;
    }


    .about-footer .footer-logo-main {

        font-size: 18px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}
