/* ==========================================================================
   RoastMyFace — the werk room stylesheet.
   Palette: hot pink, electric violet, gold sequin, and a lot of glow.
   ========================================================================== */

:root {
    --ink: #12060f;
    --ink-2: #1e0a1c;
    --pink: #ff2e88;
    --pink-soft: #ff7ab8;
    --violet: #a24bff;
    --cyan: #24e0ff;
    --gold: #ffd166;
    --paper: #fff4fa;
    --muted: #d5aec6;
    --stay: #3ddc97;
    --away: #ff5d5d;
    --panel: rgba(255, 255, 255, .05);
    --panel-line: rgba(255, 122, 184, .28);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Avenir Next", system-ui, -apple-system, sans-serif;
    color: var(--paper);
    background:
        radial-gradient(1200px 700px at 15% -10%, rgba(162, 75, 255, .45), transparent 60%),
        radial-gradient(1000px 600px at 90% 0%, rgba(255, 46, 136, .40), transparent 55%),
        radial-gradient(900px 900px at 50% 120%, rgba(36, 224, 255, .18), transparent 60%),
        linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 55%, #090309 100%);
    background-attachment: fixed;
}

/* Sequin shimmer over everything, because obviously. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .55) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255, 209, 102, .45) 1px, transparent 1.6px);
    background-size: 46px 46px, 71px 71px;
    background-position: 0 0, 23px 31px;
}

.stage {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem) 3rem;
}

/* ------------------------------- Marquee -------------------------------- */

.marquee {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.kicker {
    margin: 0 0 .35rem;
    font-size: .72rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--gold);
}

.marquee h1 {
    margin: 0;
    font-size: clamp(2.8rem, 10vw, 5.6rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: .95;
    text-transform: uppercase;
    background: linear-gradient(100deg, var(--gold), var(--pink) 40%, var(--violet) 70%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 26px rgba(255, 46, 136, .55));
}

.marquee h1 span {
    -webkit-text-fill-color: var(--paper);
    color: var(--paper);
    font-style: italic;
    font-weight: 300;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-wrap {
    position: relative;
    display: inline-block;
}

.beta-pill {
    position: absolute;
    right: -1.75rem;
    bottom: -.3rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: .18rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: rgba(0, 0, 0, .5);
    color: var(--gold);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--gold);
}

.tagline {
    margin: .9rem auto 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.tagline em {
    color: var(--pink-soft);
    font-weight: 700;
    font-style: italic;
}

.demo-badge {
    display: inline-block;
    margin-top: 1.1rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px dashed var(--gold);
    background: rgba(255, 209, 102, .10);
    color: var(--gold);
    font-size: .82rem;
}

/* ------------------------------ Werk room ------------------------------- */

.werkroom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: start;
}

@media (max-width: 900px) {
    .werkroom {
        grid-template-columns: 1fr;
    }
}

.panel {
    padding: clamp(1.1rem, 2.5vw, 1.8rem);
    border-radius: 22px;
    border: 1px solid var(--panel-line);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.support-panel {
    text-align: center;
}

.support-panel .waiting-quote {
    color: var(--pink-soft);
}

.panel-title {
    margin: 0 0 .8rem;
    font-size: .74rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--pink-soft);
}

.dropzone + .panel-title {
    margin-top: calc(1.5rem + 20px);
}

/* ------------------------------- Dropzone ------------------------------- */

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 250px;
    padding: 1.25rem;
    border-radius: 18px;
    border: 2px dashed rgba(255, 122, 184, .55);
    background: rgba(255, 46, 136, .07);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: border-color .2s, background .2s, transform .2s;
}

.dropzone:hover {
    border-color: var(--gold);
    background: rgba(255, 209, 102, .10);
    transform: translateY(-2px);
}

.dropzone.has-look {
    border-style: solid;
    border-color: var(--gold);
    padding: 0;
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon {
    font-size: 2.6rem;
}

.dropzone-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.dropzone-sub {
    font-size: .85rem;
    color: var(--muted);
}

.preview {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.swap-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .5rem;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}

/* ----------------------------- Shade picker ----------------------------- */

.shade-picker {
    display: grid;
    gap: .55rem;
}

.shade {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .8rem;
    align-items: center;
    padding: .7rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: var(--paper);
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color .18s, background .18s, transform .18s;
}

.shade:hover:not(:disabled) {
    transform: translateX(3px);
    border-color: var(--pink-soft);
}

.shade:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.shade.active {
    border-color: var(--gold);
    background: linear-gradient(100deg, rgba(255, 46, 136, .22), rgba(162, 75, 255, .22));
    box-shadow: 0 0 0 1px rgba(255, 209, 102, .35), 0 10px 30px rgba(255, 46, 136, .22);
}

.shade-emoji {
    grid-row: 1 / span 2;
    font-size: 1.6rem;
}

.shade-name {
    font-weight: 800;
    font-size: 1rem;
}

.shade-tag {
    font-size: .8rem;
    color: var(--muted);
}

/* ---------------------------- Engines button ---------------------------- */

.engines {
    width: 100%;
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-family: "Baloo 2", "Segoe UI", "Avenir Next", system-ui, -apple-system, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(43, 0, 24, .45),
        0 0 18px rgba(255, 209, 102, .8),
        0 0 34px rgba(255, 46, 136, .55);
    background: linear-gradient(100deg, var(--gold), var(--pink) 55%, var(--violet));
    cursor: pointer;
    box-shadow:
        0 14px 34px rgba(255, 46, 136, .38),
        0 5px 0 rgba(43, 0, 24, .55),
        inset 0 1px 0 rgba(255, 255, 255, .5),
        inset 0 -6px 10px rgba(43, 0, 24, .18);
    transition: transform .16s, box-shadow .16s, filter .16s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.engines:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 18px 44px rgba(255, 46, 136, .5),
        0 7px 0 rgba(43, 0, 24, .55),
        inset 0 1px 0 rgba(255, 255, 255, .5),
        inset 0 -6px 10px rgba(43, 0, 24, .18);
}

.engines:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow:
        0 6px 18px rgba(255, 46, 136, .35),
        0 1px 0 rgba(43, 0, 24, .55),
        inset 0 1px 0 rgba(255, 255, 255, .4),
        inset 0 -3px 6px rgba(43, 0, 24, .22);
}

.engines:disabled {
    filter: grayscale(.6) brightness(.75);
    cursor: not-allowed;
    box-shadow: none;
}

.share-link {
    color: #fff;
    text-align: center;
}

.share-link a {
    color: #fff;
}

.progress-track {
    height: 6px;
    margin-top: .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    animation: progress-track-in .25s ease-out both;
}

.progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, .4) 0 3px,
            transparent 3px 9px
        ),
        linear-gradient(100deg, var(--gold), var(--pink) 55%, var(--violet));
    background-size: 18px 18px, 100% 100%;
    animation:
        progress-fill-run 14s linear forwards,
        progress-hatch-move .9s linear infinite;
}

.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle, #fff 0 1px, transparent 1.6px),
        radial-gradient(circle, #fff 0 1px, transparent 1.6px);
    background-size: 24px 12px, 31px 12px, 17px 12px, 27px 12px;
    background-position: 3px 1px, 14px 6px, 8px 9px, 22px 3px;
    mix-blend-mode: screen;
    animation: progress-sparkle 1.3s ease-in-out infinite;
}

@keyframes progress-track-in {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes progress-fill-run {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes progress-hatch-move {
    from { background-position: 0 0, 0 0; }
    to { background-position: 18px 0, 0 0; }
}

@keyframes progress-sparkle {
    0%, 100% { opacity: .25; }
    50% { opacity: 1; }
}

.spinner {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    border: 3px solid rgba(43, 0, 24, .3);
    border-top-color: #2b0018;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    margin: 1rem 0 0;
    padding: .7rem .9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 93, 93, .45);
    background: rgba(255, 93, 93, .12);
    color: #ffc9c9;
    font-size: .9rem;
}

/* ------------------------------- Verdict -------------------------------- */

.result-panel {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.waiting {
    margin: auto;
    text-align: center;
    padding: 2rem 1rem;
}

.waiting-quote {
    margin: 0 0 .6rem;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-style: italic;
    font-weight: 300;
    color: var(--pink-soft);
    opacity: .9;
}

.waiting-sub {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.waiting.broke {
    border-radius: 12px;
    border: 1px solid rgba(255, 93, 93, .45);
    background: rgba(255, 93, 93, .12);
}

.waiting.broke .waiting-quote {
    color: #ffc9c9;
}

.waiting-quote-emoji {
    display: inline-block;
    font-style: normal;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding: 1.1rem 1.6rem;
    border-radius: 999px;
    font-family: "Baloo 2", "Segoe UI", "Avenir Next", system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(43, 0, 24, .45),
        0 0 18px rgba(255, 209, 102, .8),
        0 0 34px rgba(255, 46, 136, .55);
    background: linear-gradient(100deg, var(--gold), var(--pink) 55%, var(--violet));
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(255, 46, 136, .38);
    transition: transform .16s, box-shadow .16s, filter .16s;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(255, 46, 136, .5);
}

.donate-sub {
    margin: 1rem auto 0;
    max-width: 32ch;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    text-align: center;
}

.donate-footnote {
    margin: .75rem auto 0;
    max-width: 32ch;
    color: var(--muted);
    opacity: .65;
    font-size: .78rem;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.verdict-card {
    animation: reveal .45s ease-out both;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.category {
    margin: 0 0 .2rem;
    font-size: clamp(1.35rem, 3.2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.15;
    background: linear-gradient(95deg, var(--gold), var(--pink-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dragname {
    margin: 0 0 1rem;
    font-size: .9rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.dragname strong {
    color: var(--cyan);
    letter-spacing: .01em;
}

.entrance {
    margin: 0 0 1.4rem;
    padding: .9rem 1.1rem;
    border-left: 3px solid var(--violet);
    border-radius: 0 12px 12px 0;
    background: rgba(162, 75, 255, .13);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.5;
}

.section-head {
    margin: 0 0 .6rem;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--pink-soft);
}

.reads {
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
    counter-reset: read;
}

.reads li {
    counter-increment: read;
    position: relative;
    margin-bottom: .7rem;
    padding: .75rem .95rem .75rem 3rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    line-height: 1.55;
}

.reads li::before {
    content: counter(read);
    position: absolute;
    left: .8rem;
    top: .62rem;
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 900;
    color: #2b0018;
    background: linear-gradient(120deg, var(--gold), var(--pink));
}

.critique {
    margin: 0 0 1.5rem;
    line-height: 1.7;
    color: #f4dcea;
}

/* ------------------------------- Scoring -------------------------------- */

.scoreline {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: .1rem 1rem;
    margin-bottom: 1.3rem;
}

.score-label {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.score-value {
    justify-self: end;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.score-value small {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
}

.score-bar {
    grid-column: 1 / -1;
    display: block;
    height: 8px;
    margin-top: .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    overflow: hidden;
}

.score-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--violet), var(--pink), var(--gold));
    animation: fill .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes fill {
    from { width: 0 !important; }
}

/* ------------------------------- Lipstick ------------------------------- */

.lipstick {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: .02em;
    animation: pop .5s .25s cubic-bezier(.2, 1.4, .4, 1) both;
}

@keyframes pop {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: none; }
}

.lipstick-icon {
    font-size: 1.6rem;
}

.verdict-card.stay .lipstick {
    border: 1px solid rgba(61, 220, 151, .5);
    background: rgba(61, 220, 151, .14);
    color: var(--stay);
}

.verdict-card.away .lipstick {
    border: 1px solid rgba(255, 93, 93, .5);
    background: rgba(255, 93, 93, .14);
    color: var(--away);
}

.mirror {
    margin: 1.1rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(140deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
    font-family: "Segoe Script", "Bradley Hand", cursive;
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--pink-soft);
    text-align: center;
    text-shadow: 0 0 18px rgba(255, 46, 136, .5);
}

.again {
    width: 100%;
    margin-top: 1.2rem;
    padding: .8rem;
    border-radius: 999px;
    border: 1px solid var(--panel-line);
    background: transparent;
    color: var(--pink-soft);
    font: inherit;
    font-family: "Baloo 2", "Segoe UI", "Avenir Next", system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .8rem;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.again:hover {
    background: rgba(255, 46, 136, .16);
    color: var(--paper);
}

.fb-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: .8rem;
    padding: .8rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(100deg, #1877f2, #0b5fd6);
    color: #fff;
    font: inherit;
    font-family: "Baloo 2", "Segoe UI", "Avenir Next", system-ui, -apple-system, sans-serif;
    font-weight: 800;
    letter-spacing: .04em;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}

.fb-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 119, 242, .45);
}

.fb-share-icon {
    font-size: 1.1rem;
}

/* -------------------------------- Credits ------------------------------- */

.credits {
    margin-top: 3rem;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

.credits small {
    display: inline-block;
    margin-top: .4rem;
    max-width: 40rem;
    font-size: .76rem;
    opacity: .7;
}

.credits a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .2rem;
}

/* --------------------------- Blazor error bar --------------------------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: .8rem 1.2rem;
    background: #2b0018;
    color: var(--paper);
    border-top: 2px solid var(--pink);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .6);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: .7rem;
    cursor: pointer;
}

#blazor-error-ui .reload {
    color: var(--gold);
}

/* ==========================================================================
   Clippy Del Rio — the paperclip nobody asked for.
   ========================================================================== */

.clippy {
    position: fixed;
    right: clamp(.75rem, 2vw, 1.75rem);
    bottom: clamp(.75rem, 2vw, 1.5rem);
    z-index: 900;
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    opacity: 0;
    transform: translateY(30px) scale(.9);
    pointer-events: none;
    transition: opacity .4s ease, transform .5s cubic-bezier(.2, 1.3, .4, 1);
}

.clippy.in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.clippy-art {
    width: clamp(74px, 11vw, 104px);
    height: auto;
    flex: none;
    filter: drop-shadow(0 8px 22px rgba(255, 46, 136, .5));
    animation: clippy-bob 3.2s ease-in-out infinite;
    transform-origin: 50% 90%;
}

@keyframes clippy-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}

/* She blinks. Of course she blinks. */
.clippy-eyes {
    animation: clippy-blink 5.5s infinite;
    transform-origin: 60px 60px;
}

@keyframes clippy-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(.1); }
}

.clippy-bubble {
    position: relative;
    width: min(19rem, calc(100vw - 8.5rem));
    padding: .85rem 1rem 1rem;
    border-radius: 16px 16px 4px 16px;
    border: 1px solid var(--gold);
    background: linear-gradient(150deg, #fffdf6, #ffe9f5);
    color: #2b0018;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

/* The little tail pointing at her. */
.clippy-bubble::after {
    content: "";
    position: absolute;
    right: -9px;
    bottom: 16px;
    width: 16px;
    height: 16px;
    background: #ffe9f5;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(-45deg);
}

.clippy-name {
    margin: 0 0 .45rem;
    padding-right: 1.2rem;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b0006a;
}

.clippy-since {
    display: block;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: none;
    opacity: .6;
}

.clippy-text {
    margin: 0 0 .8rem;
    font-size: .95rem;
    line-height: 1.5;
    animation: clippy-say .35s ease-out both;
}

@keyframes clippy-say {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: none; }
}

.clippy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

.clippy-btn {
    padding: .42rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(43, 0, 24, .28);
    background: transparent;
    color: #2b0018;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s, border-color .16s, transform .16s;
}

.clippy-btn:hover {
    background: rgba(43, 0, 24, .08);
    transform: translateY(-1px);
}

.clippy-btn.primary {
    border-color: transparent;
    color: #2b0018;
    background: linear-gradient(100deg, var(--gold), var(--pink-soft));
    box-shadow: 0 6px 16px rgba(255, 46, 136, .35);
}

.clippy-done {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    font-style: italic;
    color: #b0006a;
}

.clippy-close {
    position: absolute;
    top: .35rem;
    right: .5rem;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(43, 0, 24, .5);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.clippy-close:hover {
    background: rgba(43, 0, 24, .1);
    color: #2b0018;
}

/* On a phone she stacks above her bubble so she doesn't eat the screen. */
@media (max-width: 520px) {
    .clippy {
        left: .75rem;
        flex-direction: row-reverse;
        align-items: flex-end;
    }

    .clippy-bubble {
        width: 100%;
        border-radius: 16px 16px 16px 4px;
    }

    .clippy-bubble::after {
        right: auto;
        left: -9px;
        border-right: 0;
        border-bottom: 1px solid var(--gold);
        border-left: 1px solid var(--gold);
        transform: rotate(45deg);
    }
}

/* ------------------------------ Load veil -------------------------------- */

.load-veil {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
}

.load-veil.fade-in {
    animation: veil-fade-in .4s ease-out both;
}

.load-veil.fade-out {
    animation: veil-fade-out .4s ease-in both;
}

@keyframes veil-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes veil-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.veil-star {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px 1px currentColor;
    animation-name: star-twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0; transform: scale(.3); }
    50% { opacity: 1; transform: scale(1); }
}
