@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Noto+Serif+Bengali:wght@400;500;600&display=swap');

/* ==========================================================================
   YEASIN KABIR  -  LITERARY PORTFOLIO  -  EDITORIAL STYLESHEET

   Direction: a classic literary journal in deep wine and dusty rose.
   - Rich burgundy surfaces, parchment text and restrained rose accents.
   - Structure comes from whitespace, small shifts in background value and
     hairline rules, not from outlines around every object.
   - Bengali reading text is set in a serif (Noto Serif Bengali); the UI stays
     in Hind Siliguri; Latin display text uses Cormorant Garamond.
   - No glows, no gradient text, no constant pulsing.

   Only this file changed. HTML ids/classes and script.js are untouched.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
    /* surfaces: layered burgundy with quiet, readable contrast */
    --bg:        #2b0c1b;
    --paper:     #341223;
    --paper-2:   rgba(58, 20, 39, 0.72);
    --paper-3:   #42192e;

    /* hairlines */
    --line:        rgba(155, 90, 116, 0.16);
    --line-strong: rgba(155, 90, 116, 0.28);

    /* ink */
    --ink:       #f6ebe4;
    --ink-soft:  #d1b4c0;
    --ink-faint: #b995a5;

    /* accent: matte dusty rose, lifted softly on hover */
    --brass:        #b3708a;
    --brass-hover:  #c988a2;
    --brass-ink:    #2b0c1b;
    --brass-wash:   rgba(155, 90, 116, 0.16);

    --indigo: #9b5a74;

    /* type */
    --font-ui:      'Hind Siliguri', sans-serif;
    --font-read:    'Noto Serif Bengali', 'Hind Siliguri', serif;
    --font-display: 'Cormorant Garamond', 'Noto Serif Bengali', 'Hind Siliguri', serif;

    /* IMPORTANT: script.js reads and rewrites this on <html>. Keep it a plain rem value,
       and never redeclare it on body or any descendant. */
    --text-size: 1.2rem;
}

/* Legacy names used by inline styles in index.html. Declared on both :root and body
   so that the optional theme classes at the bottom re-resolve them. */
:root, body {
    --primary:       var(--ink);
    --secondary:     var(--ink-soft);
    --accent:        #b3708a;
    --novel-accent:  #9b5a74;
    --card-bg:       rgba(58, 20, 39, 0.72);
    --gold-gradient: linear-gradient(135deg, #9b5a74 0%, #b3708a 55%, #c988a2 100%);
    --rose-gradient: linear-gradient(135deg, #9b5a74 0%, #b3708a 55%, #c988a2 100%);
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(26, 123, 140, 0.42); color: var(--ink); }

:focus-visible { outline: 2px solid rgba(176, 226, 232, 0.72); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

button, input, select, textarea { font-family: var(--font-ui); }
button { color: inherit; }
img { max-width: 100%; }
a { color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(176, 226, 232, 0.18); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(176, 226, 232, 0.32); }

/* Targeted transitions (replaces the old global `* { transition: all }`) */
a, button, input, textarea, select,
.poem-btn, .filter-btn, .social-btn, .pay-tab, .mood-btn, .quiz-btn, .open-when-btn,
.vintage-gallery-card, .gallery-img, .pdf-card-thumb img, .memory-img-wrap img,
.back-btn, .ctrl-float-btn, .scrapbook-page-btn, .nav-arrow-btn, .eyes-frame-vintage {
    transition: color .25s ease, background-color .25s ease, border-color .25s ease,
                opacity .25s ease, transform .25s ease;
}
.hide-during-capture { transition: none !important; }

/* Inline `font-family:'Cinzel'` in the HTML sits on Bengali text, where Cinzel has no glyphs.
   Route every one of them to the display/reading stack. */
[style*="Cinzel"] { font-family: var(--font-display) !important; }

/* Inline anchor colours/links inside notices */
.notice-content a:not(.notice-btn) { color: var(--brass-hover); text-decoration: underline; text-underline-offset: 3px; }


/* ==========================================================================
   3. PRELOADER, AMBIENT, IN-APP WARNING
   ========================================================================== */

.inapp-browser-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    z-index: 999999; padding: 20px;
}
.inapp-warning-card {
    width: 100%; max-width: 380px;
    padding: 30px 26px 26px;
    background: #161314;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    color: #e6dfd5;
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.inapp-warning-icon { margin-bottom: 12px; font-size: 2rem; line-height: 1; }
.inapp-warning-card h3 {
    margin: 0 0 12px;
    color: #e6dfd5;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.45;
}
.inapp-warning-card p {
    margin: 0;
    color: #c1b8ac;
    font-size: .96rem;
    line-height: 1.85;
}
.inapp-warning-card p b { color: #e6dfd5; }
.inapp-warning-actions { margin-top: 22px; }
.inapp-continue-btn {
    width: 100%;
    padding: 10px 22px;
    background: #b8996e;
    color: #121011;
    border: none;
    border-radius: 8px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: .98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.inapp-continue-btn:hover { background: #c4a57b; }
.inapp-continue-btn:active { transform: translateY(1px); }

.ambient-glow { display: none; }
#leaf-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ambient-leaf {
    position: absolute; top: -10px;
    width: 6px; height: 6px;
    background-color: var(--ink-faint);
    border-radius: 100% 0 100% 0;
    animation: fall linear infinite;
}
@keyframes fall {
    0%   { transform: translate3d(0, -4vh, 0) rotate(0deg); }
    50%  { transform: translate3d(14px, 52vh, 0) rotate(120deg); }
    100% { transform: translate3d(-8px, 108vh, 0) rotate(240deg); }
}

#preloader {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: var(--bg);
    z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden;
}
.feather-ink-animation { font-size: 2.2rem; color: var(--brass); margin-bottom: 30px; animation: drift 3.4s ease-in-out infinite; }
@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg);   opacity: .7; }
    50%      { transform: translateY(-9px) rotate(6deg); opacity: 1; }
}
.welcome-text-container { text-align: center; z-index: 10; padding: 0 24px; }
.welcome-line {
    display: block;
    font-family: var(--font-read);
    color: var(--ink-soft);
    font-size: 1.1rem; line-height: 1.9;
    margin-bottom: 12px;
    opacity: 0; transform: translateY(10px);
    animation: cinematicFadeIn 1.6s forwards ease-out;
}
.welcome-main {
    display: block;
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 3rem; font-weight: 500;
    letter-spacing: .01em;
    margin-top: 14px;
    opacity: 0;
    animation: mainTitleIn 2s forwards ease-out;
}
.line-1 { animation-delay: .3s; }
.line-2 { animation-delay: .8s; font-size: .98rem; color: var(--ink-faint); }
.main-title { animation-delay: 1.3s; }
@keyframes cinematicFadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes mainTitleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================================================
   4. FLOATING CONTROLS
   Bottom-left: music + support.  Bottom-right: comment + back-to-top.
   (Previously support, comment and back-to-top all landed on the same corner.)
   ========================================================================== */

.controls-wrapper { position: fixed; bottom: 20px; left: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; }
.ctrl-float-btn {
    width: 46px; height: 46px;
    background: var(--paper-2);
    border: 0; border-radius: 50%;
    color: var(--ink-soft);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.ctrl-float-btn:hover { color: var(--ink); background: var(--paper-3); }
.music-btn.playing { color: var(--brass); box-shadow: 0 0 0 1px rgba(181, 154, 104, .45), 0 4px 14px rgba(0, 0, 0, .35); }
@keyframes spin { to { transform: rotate(360deg); } }

.support-writer-btn {
    position: fixed; bottom: 24px; left: 76px; right: auto;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper-2);
    color: var(--ink-soft);
    border: 0; border-radius: 999px;
    padding: 9px 16px;
    font-family: var(--font-ui); font-weight: 600; font-size: .85rem;
    cursor: pointer; z-index: 2000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.support-writer-btn i { color: var(--brass); }
.support-writer-btn:hover { background: var(--paper-3); color: var(--ink); }

.floating-comment-icon {
    position: fixed; bottom: 20px; right: 20px;
    width: 48px; height: 48px;
    background: var(--paper-2); color: var(--ink-soft);
    border: 0; border-radius: 50%;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    cursor: pointer; z-index: 2000;
    display: flex; justify-content: center; align-items: center;
}
.floating-comment-icon:hover { background: var(--paper-3); color: var(--ink); }

#backToTopBtn {
    position: fixed; bottom: -60px; right: 22px;
    width: 42px; height: 42px;
    background: var(--paper-2); color: var(--ink-soft);
    border: 0; border-radius: 50%;
    font-size: 1rem; cursor: pointer; z-index: 2500;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    opacity: 0; pointer-events: none;
    transition: bottom .4s cubic-bezier(.165, .84, .44, 1), opacity .3s ease, background-color .25s ease, color .25s ease;
}
#backToTopBtn.show { bottom: 78px; opacity: 1; pointer-events: auto; }
#backToTopBtn:hover { background: var(--paper-3); color: var(--ink); }

#reading-progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--brass); z-index: 100000; transition: width .1s ease-out; }

.auth-corner { position: fixed; top: 10px; right: 10px; z-index: 2000; }
.auth-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(35, 34, 38, .92);
    border: 0; border-radius: 999px;
    color: var(--ink-soft);
    padding: 7px 14px;
    font-family: var(--font-ui); font-weight: 600; font-size: .82rem;
    cursor: pointer;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.auth-btn:hover { color: var(--ink); background: var(--paper-3); }
.user-profile { position: relative; cursor: pointer; }
.user-profile img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; display: block; }
.user-dropdown {
    display: none; position: absolute; top: 52px; right: 0;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 8px; padding: 14px; min-width: 180px; text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.user-dropdown.active { display: block; animation: fadeIn .25s ease; }


/* ==========================================================================
   5. APP SHELL + HOME
   ========================================================================== */

#app-container { width: 100%; max-width: 100%; min-height: 100vh; position: relative; background: var(--bg); }
@media (max-width: 899px) { #app-container { overflow-x: hidden; } }

.profile-header { text-align: center; padding: 72px 24px 24px; }

.avatar-frame {
    display: inline-block;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    margin-bottom: 18px;
}
.avatar { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; cursor: pointer; display: block; }

h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.7rem; line-height: 1.1;
    color: var(--ink);
    margin: 6px 0 6px;
}
.typing-text {
    display: block; min-height: 1.7em;
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--ink-faint);
    letter-spacing: .02em;
}
.poet-vintage-bio {
    font-family: var(--font-read);
    font-size: .98rem; line-height: 1.95;
    color: var(--ink-soft);
    max-width: 30em; margin: 20px auto 0;
}

.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.social-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background: rgba(232, 225, 212, .06);
    color: var(--ink-soft);
    text-decoration: none; border: 0;
}
.social-btn:hover { background: rgba(232, 225, 212, .12); color: var(--ink); }
.social-btn.telegram-btn:hover  { color: #6fb7de; }
.social-btn.instagram-btn:hover { color: #d9829d; }
.social-btn.youtube-btn:hover   { color: #d9776f; }

::placeholder { color: var(--ink-faint); opacity: 1; }

.list-container { padding: 8px 24px 40px; }
.section-title {
    font-family: var(--font-display);
    font-weight: 500; font-size: 1.7rem; line-height: 1.2;
    color: var(--ink);
    text-align: center;
    margin: 0 0 22px; padding: 0; border: 0;
}
.list-container > .section-title { text-align: left; }

/* The explore menu reads as a table of contents: rows divided by hairlines */
.menu-button-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 0; margin-bottom: 20px; }

.poem-btn, .vintage-item-node {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    padding: 17px 4px; margin: 0;
    background: transparent;
    color: var(--ink);
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    cursor: pointer;
}
.poem-btn:hover, .vintage-item-node:hover { background: rgba(232, 225, 212, .035); }
.menu-button-grid .poem-btn { justify-content: flex-start; gap: 14px; font-size: 1.02rem; }
.poem-btn > i:first-child { width: 1.3em; text-align: center; color: var(--brass); opacity: .85; font-size: .95rem; }
.poem-btn:hover > i:first-child { opacity: 1; }
.poem-btn > i:last-child:not(:first-child) { color: var(--ink-faint); font-size: .72rem; }
.poem-btn:hover > i:last-child:not(:first-child) { color: var(--brass); transform: translateX(3px); }

/* dynamic lists get a soft fade (no slide-up on every row) */
.stagger-anim { opacity: 0; animation: slideUpFade .5s ease-out forwards; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.visitor-counter { margin-top: 34px; font-size: .82rem; color: var(--ink-faint); letter-spacing: .03em; text-transform: lowercase; text-align: left; }
#home-view > div:last-child { color: var(--ink-faint) !important; font-size: .72rem !important; letter-spacing: .03em; text-transform: lowercase; }

/* notice board: a quiet tinted panel, no outline, no pulsing */
.notice-container {
    background: var(--paper-2);
    border: 0; border-radius: 6px;
    padding: 18px 20px; margin: 0 0 26px;
}
.notice-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.notice-icon { color: var(--brass); font-size: 1rem; }
.notice-title { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; color: var(--ink); }
.notice-content { font-family: var(--font-read); color: var(--ink-soft); font-size: .96rem; line-height: 1.9; }
.notice-text { margin: 0 0 8px; white-space: pre-line; }
.notice-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brass); color: var(--brass-ink);
    padding: 8px 16px; border: 0; border-radius: 6px;
    text-decoration: none; font-weight: 600; font-size: .9rem;
    font-family: var(--font-ui);
    margin-top: 12px; cursor: pointer;
}
.notice-btn:hover { background: var(--brass-hover); }


/* ==========================================================================
   6. SEARCH + FILTERS
   ========================================================================== */

.search-container { padding: 0; margin-bottom: 20px; }
#search-bar {
    width: 100%; padding: 12px 2px;
    background: transparent; color: var(--ink);
    border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
    font-size: 1rem;
}
#search-bar:focus { border-bottom-color: var(--brass); }

.filter-tags { display: flex; gap: 6px; padding: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.filter-tags::-webkit-scrollbar { display: none; }
.filter-btn {
    background: transparent; border: 0; border-radius: 999px;
    color: var(--ink-faint);
    padding: 7px 16px; cursor: pointer; white-space: nowrap;
    font-size: .92rem;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { background: rgba(232, 225, 212, .09); color: var(--ink); font-weight: 600; }


/* ==========================================================================
   7. FULL VIEWS (readers' column + headers)
   Horizontal padding centres every child in a 760px reading column, so no HTML
   wrappers are needed. Wide galleries get 1080px.
   ========================================================================== */

.full-view {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg);
    z-index: 1500;
    padding: 22px max(20px, calc((100% - 760px) / 2)) 90px;
    overflow-y: auto;
}
#gallery-view, #video-view, #pdf-library, #preorder-view { padding-inline: max(20px, calc((100% - 1080px) / 2)); }

.back-btn {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 0;
    color: var(--ink-soft);
    font-size: .92rem; font-weight: 600;
    letter-spacing: .01em; text-transform: lowercase;
    cursor: pointer;
    margin-bottom: 20px;
}
.back-btn:hover { color: var(--ink); transform: translateX(-2px); }

.library-header { margin-bottom: 8px; }
.library-header h2 {
    font-family: var(--font-display);
    font-weight: 500; font-size: 2rem; line-height: 1.25;
    color: var(--ink) !important;
    text-align: center;
    margin: 6px 0 26px;
}

.reader-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
#chapter-dropdown, #letter-part-dropdown {
    background: var(--paper-2); color: var(--ink);
    border: 0; border-radius: 6px;
    padding: 9px 14px; font-size: .95rem; cursor: pointer; max-width: 70%;
}

.reader-sticky-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px max(118px, calc((100% - 760px) / 2)) 12px max(20px, calc((100% - 760px) / 2));
    background: rgba(22, 21, 24, .92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}


/* ==========================================================================
   8. READING SURFACES
   ========================================================================== */

.vintage-poem-title {
    text-align: center;
    font-family: var(--font-read);
    font-weight: 600; font-size: 1.85rem; line-height: 1.5;
    color: var(--ink);
    margin: 0 0 30px;
}
.vintage-poem-title::after { content: ''; display: block; width: 40px; height: 1px; background: var(--brass); opacity: .65; margin: 18px auto 0; }

/* kept opaque so PDF / image export still has a dark page behind the light text */
#poem-container-box { background: var(--paper); border: 0; border-radius: 6px; padding: 44px 28px 72px; margin-bottom: 35px; }
#poem-content-display {
    font-family: var(--font-read);
    font-size: var(--text-size); font-weight: 400;
    line-height: 2.1;
    color: var(--ink);
    white-space: pre-line; text-align: center;
}
#poem-container-box > div[style*="Great Vibes"] {
    font-family: var(--font-read) !important;
    font-size: 1.02rem !important;
    color: var(--ink-faint) !important;
}

#novel-reader, #letter-reader { text-align: center; }
#novel-pdf-area, #letter-pdf-area { background: var(--bg); }
#current-chapter-title, #current-letter-title {
    font-family: var(--font-read) !important;
    font-weight: 600 !important; font-size: 1.6rem; line-height: 1.5;
    color: var(--ink) !important;
    margin: 0 0 28px;
}
.story-text {
    font-family: var(--font-read);
    font-size: 1.2rem; font-weight: 400; line-height: 2.05;
    color: var(--ink);
    text-align: left; white-space: pre-line;
    padding-bottom: 48px;
}
@media (min-width: 700px) { .story-text { text-align: justify; } }

.nav-arrow-btn {
    position: static; transform: none;
    display: inline-flex; justify-content: center; align-items: center;
    width: 44px; height: 44px; margin: 12px 8px;
    background: var(--paper-2); color: var(--ink-soft);
    border: 0; border-radius: 50%;
    font-size: 1.05rem; cursor: pointer;
}
.nav-arrow-btn:hover { background: var(--paper-3); color: var(--ink); }

/* shared reading cards (novels, letters, sayeri, monologues, memories, videos).
   Separation is a tint, not an outline. */
.vintage-paper-node, .novel-card, .sayeri-card, .monologue-card, .memory-item-card {
    background: var(--paper-2);
    border: 0; border-radius: 6px;
    padding: 28px; margin-bottom: 20px;
}
.novel-card h3, .monologue-title {
    margin: 0 0 10px;
    font-family: var(--font-read);
    font-weight: 600; font-size: 1.4rem; line-height: 1.5;
    color: var(--ink);
}
.monologue-title { color: var(--ink) !important; }
.novel-meta { font-size: .85rem; color: var(--ink-faint); margin-bottom: 14px; }
.novel-summary { font-family: var(--font-read); font-size: .98rem; line-height: 1.95; color: var(--ink-soft); text-align: left; margin-bottom: 22px; }
.read-btn {
    background: var(--brass-wash); color: var(--brass) !important;
    border: 0; border-radius: 6px;
    padding: 11px 22px; cursor: pointer;
    font-weight: 600; font-size: .95rem;
}
.read-btn:hover { background: rgba(181, 154, 104, .22); color: var(--brass-hover) !important; }

.sayeri-text, .monologue-text {
    font-family: var(--font-read);
    font-size: 1.2rem !important; line-height: 2.05 !important;
    font-weight: 400;
    color: var(--ink) !important;
    text-align: center !important; white-space: pre-line !important;
    text-shadow: none !important;
}
.sayeri-card > div[style*="text-align:right"], .monologue-card > div[style*="text-align:right"] { color: var(--ink-faint) !important; font-style: normal !important; }

.vintage-comment-box { background: rgba(232, 225, 212, .04); padding: 14px 16px; border: 0 !important; border-radius: 6px; margin-bottom: 12px; }

#bookmark-list-container .poem-btn { padding: 16px 4px; }


/* ==========================================================================
   9. BUTTONS + FORMS
   ========================================================================== */

/* primary: matte brass */
.sub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brass); color: var(--brass-ink);
    border: 0; border-radius: 6px;
    padding: 12px 22px;
    font-weight: 600; font-size: .95rem; line-height: 1.3;
    text-decoration: none; cursor: pointer;
}
.sub-btn:hover { background: var(--brass-hover); }
.sub-btn:active { transform: translateY(1px); }

/* secondary: quiet chips for the row of utilities under every poem/story */
.action-buttons-group {
    display: flex; flex-wrap: nowrap;
    justify-content: flex-start; justify-content: safe center;
    gap: 6px; margin-top: 22px; padding-bottom: 8px;
    overflow-x: auto; scrollbar-width: none;
}
.action-buttons-group::-webkit-scrollbar { display: none; }
.action-buttons-group .sub-btn,
#settings-panel .sub-btn,
#user-dropdown .sub-btn {
    flex: 0 0 auto;
    background: rgba(232, 225, 212, .06); color: var(--ink-soft);
    border-radius: 999px;
    padding: 8px 14px; font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.action-buttons-group .sub-btn:hover,
#settings-panel .sub-btn:hover,
#user-dropdown .sub-btn:hover { background: rgba(232, 225, 212, .12); color: var(--ink); }

/* bookmarked state: script sets an inline colour on the icon */
.bookmark-btn i[style*="color"], #bookmark-toggle-btn i[style*="color"] { color: var(--brass) !important; }

#settings-panel {
    background: var(--paper-2) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .5) !important;
}

.c-input {
    width: 100%; display: block;
    background: var(--paper-2); color: var(--ink);
    border: 1px solid transparent; border-radius: 6px;
    padding: 13px 14px; margin-bottom: 14px;
    font-size: 1rem; line-height: 1.6;
}
.c-input:focus { border-color: rgba(181, 154, 104, .55); }
textarea.c-input { resize: vertical; }
#preorder-book-select { background: var(--paper-2) !important; color: var(--ink) !important; }
#preorder-modal-overlay select option { background-color: var(--paper-2); color: var(--ink); }

.vintage-form-wrapper { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 8px 0 0; }


/* ==========================================================================
   10. GALLERY, VIDEO, PDF + PREORDER
   ========================================================================== */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; padding: 8px 0; }
.vintage-gallery-card { position: relative; overflow: hidden; border: 0; border-radius: 6px; background: var(--paper-2); }
.gallery-img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .5s ease; }
.vintage-gallery-card:hover .gallery-img { transform: scale(1.03); }
.gallery-caption { padding: 11px 12px; font-size: .9rem; color: var(--ink-soft); text-align: center; background: var(--paper-2); }

.video-card-item { background: var(--paper-2) !important; border: 0 !important; border-radius: 6px !important; padding: 12px !important; }

.pdf-library-intro { max-width: 34em; margin: 0 auto 26px; padding: 0 10px; text-align: center; }
.pdf-library-intro p { margin: 0; font-family: var(--font-read); font-size: .95rem; line-height: 1.95; color: var(--ink-soft); }
.pdf-loading-message { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px; color: var(--ink-faint); font-size: .95rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--brass); border-radius: 50%; animation: spin 1s linear infinite; }

.pdf-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; width: 100%; padding: 10px 0 50px; }
.pdf-card { display: flex; flex-direction: column; height: 100%; background: var(--paper-2); border: 0; border-radius: 6px; padding: 16px; }
.pdf-card-thumb {
    width: 100%; aspect-ratio: 1 / 1.4; height: auto;
    margin-bottom: 16px; padding: 0;
    background: #121113; border: 0; border-radius: 4px;
    display: block; overflow: hidden; cursor: pointer; position: relative;
}
.pdf-card-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.pdf-card-thumb:hover img { transform: scale(1.03); }
.pdf-card-info { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pdf-card-title { margin: 0; font-family: var(--font-read); font-weight: 600; font-size: 1.1rem; line-height: 1.5; color: var(--ink); }
.pdf-card-author { margin: 2px 0 0; font-size: .92rem; color: var(--ink-soft); }
.pdf-card-author[style] { color: var(--brass) !important; }
.pdf-card-meta { margin: 0; font-size: .82rem; color: var(--ink-faint); }
.pdf-card-desc { min-height: 0; margin: 0 0 8px; font-family: var(--font-read); font-size: .9rem; line-height: 1.85; color: var(--ink-soft); }
.pdf-card-action { margin-top: auto; display: flex; justify-content: flex-end; }
.pdf-card-action .sub-btn { width: auto; }
/* the pre-order button has an inline green gradient; bring it in line */
#preorder-books-grid .pdf-card-action .sub-btn { background: var(--brass) !important; color: var(--brass-ink) !important; }
#preorder-books-grid .pdf-card-action .sub-btn:hover { background: var(--brass-hover) !important; }


/* ==========================================================================
   11. MODALS, SHEETS, LIGHTBOX
   ========================================================================== */

.auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 9, 10, .78);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.auth-modal-overlay.active { opacity: 1; visibility: visible; }
.auth-modal-box.vintage-paper-node {
    width: 90%; max-width: 420px; text-align: center; position: relative;
    background: var(--paper-2);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 32px 26px 26px; margin-bottom: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    transform: scale(.97);
    transition: transform .3s cubic-bezier(.165, .84, .44, 1);
}
.auth-modal-overlay.active .auth-modal-box { transform: scale(1); }
.auth-modal-box h2 { color: var(--ink) !important; font-weight: 500; font-size: 1.5rem; }

.close-auth-btn, .close-pay-btn, .close-comment-btn { background: transparent; border: 0; color: var(--ink-faint); font-size: 1.3rem; cursor: pointer; }
.close-auth-btn { position: absolute; top: 14px; right: 14px; }
.close-pay-btn  { position: absolute; top: 16px; right: 16px; }
.close-auth-btn:hover, .close-pay-btn:hover, .close-comment-btn:hover { color: var(--ink); }

#content-popup-overlay { z-index: 999999; padding: 15px; }
#content-popup-overlay .auth-modal-box { width: 95%; max-width: 580px !important; max-height: 85vh; overflow-y: auto; margin: auto; padding: 36px 22px 24px !important; }
#content-popup-overlay .close-auth-btn { top: 10px; right: 14px; z-index: 10; font-size: 1.5rem; }
#preorder-modal-overlay .auth-modal-box { max-height: 85vh; overflow-y: auto; margin: auto; }
#preorder-modal-overlay .vintage-form-wrapper { max-height: calc(85vh - 100px); overflow-y: auto; padding-right: 8px; }

/* comments bottom sheet. The overlay previously had no `.active` rule, so it never showed. */
#comment-modal-overlay {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: rgba(10, 9, 10, .55);
    z-index: 2500;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
#comment-modal-overlay.active { opacity: 1; visibility: visible; }
.bottom-sheet-modal {
    position: fixed; bottom: 20px; left: 50%;
    width: 95%; max-width: 540px;
    background: var(--paper-2);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 22px;
    z-index: 2600;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    transform: translate(-50%, 24px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .4s cubic-bezier(.165, .84, .44, 1), opacity .3s ease, visibility .3s ease;
}
.bottom-sheet-modal.active { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }

/* payments */
#payment-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 9, 10, .78);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
#payment-modal-overlay.active { opacity: 1; visibility: visible; }
.payment-modal-box {
    width: min(420px, calc(100% - 32px));
    background: var(--paper-2);
    border: 1px solid var(--line); border-radius: 14px;
    padding: 28px 24px 24px; position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.pay-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--ink); text-align: center; }
.pay-subtitle { margin: 0 0 22px; font-family: var(--font-read); font-size: .9rem; line-height: 1.85; color: var(--ink-soft); text-align: center; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.pay-tab {
    display: grid; justify-items: center; gap: 8px;
    background: rgba(232, 225, 212, .04);
    border: 1px solid transparent; border-radius: 10px;
    color: var(--ink-soft); padding: 12px 8px; font-size: .78rem; cursor: pointer;
}
.pay-tab img { width: 24px; height: 24px; object-fit: contain; }
.pay-tab.active { background: rgba(232, 225, 212, .09); border-color: var(--line-strong); color: var(--ink); }
.pay-panel { display: none; }
.pay-panel.active { display: block; animation: fadeIn .3s ease; }
.pay-number-box {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 13px 16px; margin-bottom: 18px;
    background: rgba(232, 225, 212, .04); border: 0; border-radius: 8px;
    color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums;
}
.pay-number-box button { background: transparent; border: 0; color: var(--brass); font-size: 1.05rem; cursor: pointer; }
.live-pay-section { display: grid; gap: 12px; }
.live-app-btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.live-app-btn:hover { opacity: .88; }
.bkash-color { background: #c4306f; color: #fff; }
.nagad-color { background: #d9822b; color: #1c1205; }
.binance-note { padding: 14px; border-radius: 8px; background: rgba(232, 225, 212, .04); color: var(--ink); text-align: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
#pay-binance .sub-btn { background: var(--brass) !important; color: var(--brass-ink) !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* lightbox */
.lightbox-modal-wrapper {
    display: none; position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 99999; padding: 20px;
    background: rgba(10, 9, 10, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    align-items: center; justify-content: center; flex-direction: column;
}
.lightbox-modal-content { margin: auto; display: block; max-width: 95%; max-height: 78vh; border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: lightboxZoomInEffect .35s ease-out forwards; }
@keyframes lightboxZoomInEffect { from { transform: scale(.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close-btn { position: absolute; top: 22px; right: 30px; color: var(--ink-soft); font-size: 38px; line-height: 1; cursor: pointer; }
.lightbox-close-btn:hover { color: var(--ink); }
#lightbox-image-caption { margin-top: 14px; font-family: var(--font-read); font-size: .95rem; color: var(--ink-soft); text-align: center; }


/* ==========================================================================
   12. SECTION LOADER
   ========================================================================== */

#dynamic-section-loader {
    position: fixed; inset: 0;
    background: rgba(22, 21, 24, .97);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity .35s ease;
}
.loader-content { font-size: 3rem; margin-bottom: 22px; }
.loader-content i { color: var(--brass) !important; }
.loader-sketch-img {
    width: 68px !important;
    height: 68px !important;
    object-fit: contain !important;
    margin-bottom: 20px !important;
    mix-blend-mode: screen !important;
    animation: loaderDrift 1.8s infinite ease-in-out !important;
    filter: brightness(1.1);
}
@keyframes loaderDrift {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        opacity: 1;
    }
}
.loader-text { font-family: var(--font-read); color: var(--ink-soft); font-size: 1.05rem; text-align: center; animation: pulseText 2.2s ease-in-out infinite; }
@keyframes pulseText { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.anim-feather, .anim-book, .anim-envelope, .anim-diary, .anim-camera,
.anim-video, .anim-pdf, .anim-heart, .anim-mic { animation: loaderFloat 2.4s ease-in-out infinite; }
@keyframes loaderFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }


/* ==========================================================================
   13. RUMI'S VAULT
   Same structure, same features. Re-toned from neon pink to dusk rose and wine
   on warm dark, with the glows removed.
   ========================================================================== */

#secret-vault {
    --v-bg:        #071B2B;
    --v-bar:       #061522;
    --v-line:      rgba(176, 226, 232, .16);
    --v-rose:      #1A7B8C;
    --v-rose-soft: #B0E2E8;
    --v-ink:       #EFEFEF;
    --v-card:      rgba(10, 32, 50, .78);
    background: var(--v-bg);
    padding: 0;
    overflow: hidden;
}
.vault-romantic-wrapper { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; }

.vault-header {
    flex-shrink: 0; position: relative; z-index: 2200;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px 14px;
    background: var(--v-bar);
    border-bottom: 1px solid var(--v-line);
}
.vault-lock-btn { margin-bottom: 0; padding: 7px 16px; background: rgba(255, 255, 255, .05); border: 0; border-radius: 999px; color: var(--v-rose-soft); font-size: .85rem; }
.vault-lock-btn:hover { background: rgba(255, 255, 255, .1); color: var(--v-ink); transform: none; }
.vault-emblem { margin: 0; font-family: 'Great Vibes', cursive; font-size: 2.1rem; color: var(--v-rose-soft); }

#petals-container { position: absolute; inset: 0; pointer-events: none; z-index: 20; }

.scrapbook-body { flex-grow: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 22px; overflow-y: auto; scrollbar-width: none; }
.scrapbook-body::-webkit-scrollbar { display: none; }
.diary-page { display: none; transform-origin: left center; }
.diary-page.active { display: block; }
@keyframes pageTurnEffect { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.page-title {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 500; font-size: 1.6rem; line-height: 1.3;
    color: var(--v-rose-soft);
    text-align: center; margin: 0 0 24px;
}
.page-title i { font-size: .8em; color: var(--v-rose); opacity: .8; }

.diary-text {
    font-family: var(--font-read);
    font-size: 1.1rem; line-height: 2.05; font-weight: 400;
    color: var(--v-ink);
    background: var(--v-card);
    border: 0; border-radius: 6px;
    padding: 28px; margin-bottom: 20px;
    white-space: pre-line;
}
.diary-text .highlight-vault-text, .diary-text [style*="var(--secondary)"] { color: var(--v-rose-soft) !important; }
.italic-quote { font-style: normal; }
.vintage-letter-bg { background: rgba(255, 243, 235, .06); color: var(--v-ink); }
.letter-sign-off { font-family: var(--font-display); font-size: 1.4rem; color: var(--v-rose-soft); text-align: right; margin-top: 10px; }

.scrapbook-controls-dock {
    flex-shrink: 0; position: relative; z-index: 2200;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px 18px;
    background: var(--v-bar);
    border-top: 1px solid var(--v-line);
}
.scrapbook-page-btn {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, .05); border: 0; border-radius: 50%;
    color: var(--v-rose-soft); font-size: 1rem; cursor: pointer;
}
.scrapbook-page-btn:hover { background: rgba(255, 255, 255, .11); color: var(--v-ink); }

.vault-page-dropdown, #vault-page-select {
    display: inline-block; height: 42px; min-width: 160px; margin: 0 10px;
    padding: 8px 30px 8px 14px;
    background-color: rgba(255, 255, 255, .06); color: var(--v-ink);
    border: 0; border-radius: 8px;
    font-size: .95rem; font-weight: 600; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebc4cb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.vault-page-dropdown option, #vault-page-select option { background-color: #0B2338 !important; color: var(--v-ink) !important; }

.open-when-container { display: grid; gap: 10px; }
.open-when-btn { display: block; width: 100%; padding: 16px 18px; background: var(--v-card); border: 0; border-radius: 6px; color: var(--v-ink); cursor: pointer; text-align: left; font-size: 1.05rem; }
.open-when-btn:hover { background: rgba(255, 255, 255, .07); }
.open-when-msg { display: none; margin-bottom: 4px; padding: 16px 18px; background: rgba(0, 0, 0, .22); border-left: 2px solid var(--v-rose); border-radius: 0 6px 6px 0; color: var(--v-rose-soft); font-family: var(--font-read); font-size: 1rem; line-height: 1.95; }

.mood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.mood-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; background: var(--v-card); border: 0; border-radius: 10px; color: var(--v-ink); cursor: pointer; }
.mood-btn:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.mood-icon { font-size: 2rem; }
#mood-msg { min-height: 2.4rem; margin-top: 12px; font-family: var(--font-read); font-size: 1rem; color: var(--v-rose-soft); text-align: center; }

.quiz-grid { display: grid; gap: 10px; margin-top: 18px; }
.quiz-btn { padding: 15px 16px; background: var(--v-card); border: 0; border-radius: 6px; color: var(--v-ink); cursor: pointer; font-size: 1.02rem; }
.quiz-btn:hover { background: rgba(255, 255, 255, .08); }
/* script paints answers with inline #2ecc71 / #e74c3c; mute them */
.quiz-btn[style*="46, 204, 113"] { background: #4f6b52 !important; color: #f3f7f1 !important; }
.quiz-btn[style*="231, 76, 60"]  { background: #7a3b3b !important; color: #fbefee !important; }
#quiz-feedback { margin-top: 14px; text-align: center; color: var(--v-rose-soft); }

.unique-bucket-layout { display: grid; gap: 10px; padding: 0; background: transparent; }
.bucket-item { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--v-card); border: 0; border-radius: 6px; color: var(--v-ink); font-size: 1rem; }
.animated-check { color: #9db596; }

.eyes-frame-vintage { display: inline-block; width: 100%; max-width: 340px; margin: 0 auto 24px; padding: 6px; background: rgba(0, 0, 0, .25); border: 0; border-radius: 6px; cursor: pointer; }
.eyes-frame-vintage:hover { transform: scale(1.01); }
.her-eyes { width: 100%; height: auto; border-radius: 4px; display: block; }
#page-3 { text-align: center; }

#love-clock { margin-top: 20px; padding: 13px; background: rgba(0, 0, 0, .22); border: 0; border-radius: 6px; font-size: 1.02rem; font-variant-numeric: tabular-nums; color: var(--v-rose-soft); text-align: center; }
.motu-nickname { margin: 24px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; color: var(--v-rose-soft); text-align: center; letter-spacing: 0; }

.interactive-heart-trigger { text-align: center; }
.pulse-heart-btn { font-size: 4rem; line-height: 1.2; background: none; border: 0; color: var(--v-rose); cursor: pointer; }
.pulse-heart-btn:hover { transform: scale(1.06); }
.pulse-heart-btn:active { transform: scale(.97); }
.click-instruction { font-family: var(--font-read); font-size: .95rem; color: var(--v-rose-soft); }
#love-reason { margin-top: 14px; font-family: var(--font-read); font-size: 1.1rem; line-height: 1.95; color: var(--v-ink); text-align: center; }

.fingerprint-area { position: relative; width: 112px; height: 112px; margin: 36px auto; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(212, 154, 166, .4); border-radius: 50%; background: transparent; cursor: pointer; }
.fingerprint-area i { font-size: 3.4rem; color: var(--v-rose); }
.scan-line { position: absolute; top: 0; width: 100%; height: 2px; background: var(--v-rose-soft); display: none; animation: scan 1.5s infinite linear; }
@keyframes scan { 0% { top: 0; opacity: .9; } 50% { top: calc(100% - 2px); opacity: .4; } 100% { top: 0; opacity: .9; } }
#promise-msg { display: none; margin-top: 18px; font-family: var(--font-read); font-size: 1rem; color: var(--v-rose-soft); text-align: center; }

.contract-paper { position: relative; margin-bottom: 26px; padding: 30px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-size: 1rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.contract-paper h3 { border-bottom-color: var(--line-strong) !important; }
.stamp { position: absolute; bottom: 30px; right: 30px; padding: 6px 14px; border: 2px solid var(--brass); border-radius: 4px; color: var(--brass-hover); font-weight: 700; letter-spacing: .06em; transform: rotate(-15deg) scale(2); opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.contract-sign-btn { width: 100%; padding: 14px 40px; background: var(--brass); color: var(--ink); border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; }
.contract-sign-btn:hover { background: #2394A7; }

#secret-vault .vault-custom-input { background: rgba(0, 0, 0, .25); border: 1px solid transparent; border-radius: 6px; color: var(--v-ink); }
#secret-vault .vault-custom-input:focus { border-color: rgba(212, 154, 166, .5); }
#secret-vault .vault-send-btn { width: 100%; padding: 13px; background: rgba(212, 154, 166, .16); color: var(--v-rose-soft); border: 0; border-radius: 6px; font-weight: 600; }
#secret-vault .vault-send-btn:hover { background: rgba(212, 154, 166, .3); color: var(--v-ink); }

#love-result { display: none; margin-top: 20px; font-family: var(--font-display); font-weight: 500; font-size: 3rem; color: var(--v-rose-soft); text-align: center; }
#love-msg { margin-top: 12px; font-size: 1rem; color: var(--v-rose-soft) !important; }

.aura-scanner-page { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.aura-field {
    position: relative; width: 100%; max-width: 300px; height: 300px;
    border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(212, 154, 166, .14), rgba(98, 30, 48, .12) 45%, transparent 72%);
    border: 1px solid var(--v-line);
    cursor: pointer;
}
.aura-field::before, .aura-field::after { display: none; }
.aura-field.scanning { animation: auraPulse 2.4s ease-in-out infinite; }
.aura-field.scanning .aura-scan-line { opacity: 1; }
.aura-scan-line { position: absolute; top: 10%; left: 10%; width: 80%; height: 2px; background: var(--v-rose-soft); border-radius: 999px; opacity: 0; animation: auraScan 1.5s infinite ease-in-out; }
.aura-center-text { position: relative; z-index: 2; font-family: 'Great Vibes', cursive; font-size: 2rem; color: var(--v-rose-soft); text-align: center; }
.aura-instruction { max-width: 84%; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.7; color: var(--v-rose-soft); text-align: center; }
.aura-result { min-height: 4rem; padding: 10px 20px; background: rgba(255, 255, 255, .04); border: 0; border-radius: 10px; font-size: 1rem; line-height: 1.8; color: var(--v-ink); text-align: center; }
.aura-result strong { color: var(--v-rose-soft); }
@keyframes auraPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes auraScan { 0% { top: 12%; opacity: .4; } 50% { top: 78%; opacity: 1; } 100% { top: 12%; opacity: .4; } }

#memory-collection-container { display: grid; gap: 16px; }
#secret-vault .memory-item-card { padding: 16px; background: var(--v-card); }
.memory-flex-box { display: flex; flex-direction: column; gap: 18px; }
.memory-img-wrap { width: 100%; }
.memory-img-wrap img { width: 100%; height: 210px; object-fit: cover; border: 0; border-radius: 4px; cursor: pointer; }
.memory-img-wrap img:hover { transform: scale(1.02); }
.memory-text-wrap { display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .2); border: 0; border-radius: 6px; }
.memory-desc-text { margin: 0; font-family: var(--font-read); font-size: 1.02rem; line-height: 1.95; font-weight: 400; color: var(--v-ink); text-align: left; white-space: pre-line; }
@media (min-width: 600px) {
    .memory-flex-box { flex-direction: row; }
    .memory-img-wrap { width: 42%; }
    .memory-text-wrap { width: 58%; }
    .memory-img-wrap img { height: 100%; min-height: 190px; }
}

#secret-vault .vintage-comment-box { background: var(--v-card); }
#secret-vault .vintage-comment-box h3 { color: var(--v-rose-soft) !important; font-weight: 500; font-size: 1.3rem; }


/* ==========================================================================
   14. DESKTOP
   ========================================================================== */

@media (min-width: 900px) {
    #home-view {
        display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start;
        max-width: 1200px; margin: 0 auto; padding: 40px 28px;
    }
    .profile-header { position: static; text-align: left; padding: 72px 0 40px; }
    .social-links { justify-content: flex-start; }
    .poet-vintage-bio { margin: 20px 0 0; max-width: 100%; }
    .list-container { padding: 72px 0 40px; }
    #buttons-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
    #home-view > div:last-child { grid-column: 1 / -1; }
}


/* ==========================================================================
   15. MOBILE
   ========================================================================== */

@media (max-width: 720px) { .menu-button-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    h1 { font-size: 2.4rem; }
    .vintage-paper-node, .novel-card, .sayeri-card, .monologue-card, .memory-item-card { padding: 22px 18px; }
    #poem-container-box { padding: 32px 14px 64px; }
    .diary-text { padding: 20px 16px; font-size: 1.05rem; }
    .scrapbook-body { padding: 22px 16px; }
    .scrapbook-controls-dock { padding: 10px 8px 14px; gap: 6px; }
    #vault-page-select, .vault-page-dropdown { min-width: 110px; margin: 0 4px; padding: 6px 22px 6px 10px; font-size: .82rem; }
    .vault-header { padding: 16px 16px 12px; }
    .welcome-main { font-size: 2.4rem; }
}

@media (max-width: 480px) {
    .action-buttons-group { gap: 4px; }
    .action-buttons-group .sub-btn { font-size: .74rem; padding: 7px 11px; }
    .action-buttons-group .sub-btn i { font-size: .75rem; }
    .library-header h2 { font-size: 1.7rem; }
}


/* ==========================================================================
   SAYERI TABLE OF CONTENTS
   ========================================================================== */

.sayeri-toc-bar {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: center;
    padding: 8px 0 14px;
    background: var(--bg);
}
.sayeri-toc-bar[hidden] { display: none; }

.sayeri-toc-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--ink-soft);
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 9px 22px;
    font-family: var(--font-ui); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.sayeri-toc-btn:hover { color: var(--brass-hover); border-color: var(--brass); background: var(--brass-wash); }
.sayeri-toc-count {
    font-size: .78rem; font-weight: 500; color: var(--ink-faint);
    padding-left: 10px; border-left: 1px solid var(--line-strong);
}
.sayeri-toc-count:empty { display: none; }

.sayeri-toc-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(10, 9, 11, .55);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.sayeri-toc-overlay.open {
    opacity: 1; visibility: visible;
    transition: opacity .25s ease;
}
.sayeri-toc-drawer {
    position: absolute; top: 0; right: 0;
    width: min(420px, 100%); height: 100%;
    display: flex; flex-direction: column;
    background: var(--paper);
    border-left: 1px solid var(--line-strong);
    transform: translateX(28px);
    transition: transform .32s cubic-bezier(.22, .8, .3, 1);
}
.sayeri-toc-overlay.open .sayeri-toc-drawer { transform: none; }

.toc-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 26px 26px 14px;
}
.toc-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.7rem; font-weight: 500; letter-spacing: .02em;
    color: var(--ink);
}
.toc-meta { display: block; margin-top: 4px; font-size: .8rem; color: var(--ink-faint); }
.toc-close {
    background: transparent; border: 0; cursor: pointer;
    font-size: 1.8rem; line-height: 1; color: var(--ink-faint);
    padding: 0 4px; transition: color .2s;
}
.toc-close:hover { color: var(--ink); }

.toc-search-wrap { padding: 0 26px 14px; border-bottom: 1px solid var(--line); }
.toc-search {
    width: 100%; box-sizing: border-box;
    background: transparent; color: var(--ink);
    border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
    padding: 9px 2px;
    font-family: var(--font-ui); font-size: .98rem;
    outline: none; transition: border-color .2s;
}
.toc-search::placeholder { color: var(--ink-faint); }
.toc-search:focus { border-bottom-color: var(--brass); }

.toc-list {
    list-style: none; margin: 0; padding: 8px 26px 40px;
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.toc-item[hidden] { display: none; }
.toc-link {
    display: flex; align-items: baseline; gap: 12px;
    width: 100%; text-align: left;
    background: transparent; border: 0; cursor: pointer;
    padding: 12px 0; color: var(--ink-soft);
    font-family: var(--font-read); font-size: 1.02rem; line-height: 1.6;
    transition: color .2s;
}
.toc-link:hover, .toc-link:focus-visible { color: var(--brass-hover); outline: none; }
.toc-num {
    flex: 0 0 auto; min-width: 2ch;
    font-family: var(--font-ui); font-size: .8rem; color: var(--ink-faint);
}
.toc-title {
    flex: 0 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toc-leader {
    flex: 1 1 12px; min-width: 12px;
    border-bottom: 1px dotted var(--line-strong);
    transform: translateY(-4px);
}
.toc-empty { padding: 24px 26px; color: var(--ink-faint); font-style: italic; text-align: center; }
.toc-empty[hidden] { display: none; }

.sayeri-card { position: relative; }
.sayeri-card.sayeri-flash::after {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit; pointer-events: none;
    background: var(--brass-wash);
    box-shadow: inset 0 0 0 1px var(--brass);
    animation: sayeriFlash 1.9s ease-out 1 both;
}
@keyframes sayeriFlash {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sayeri-toc-overlay, .sayeri-toc-drawer { transition: none; }
}


/* ==========================================================================
   16. OPTIONAL THEMES
   script.js clears body.className on load, so these are inactive today. They are
   kept (re-toned) so adding a theme switcher later still works.
   ========================================================================== */

body.theme-sepia, body.theme-vintage-sepia,
body.theme-moonlight, body.theme-midnight-obsidian,
body.theme-dark-emerald, body.theme-royal-lavender {
    --bg: #110f10;
    --paper: #1c1819;
    --paper-2: rgba(28, 24, 25, 0.85);
    --paper-3: #241e1d;
    --ink: #e6dfd5;
    --ink-soft: #c1b8ac;
    --ink-faint: #9e9589;
    --brass: #b8996e;
    --brass-hover: #c4a57b;
    --brass-ink: #121011;
    --brass-wash: rgba(184, 153, 110, 0.12);
}


/* ==========================================================================
   17. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   WARM EDITORIAL THEME
   ========================================================================== */

:root, body {
    --bg: #110f10;
    --paper: #1c1819;
    --paper-2: rgba(28, 24, 25, 0.85);
    --paper-3: #241e1d;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.12);
    --ink: #e6dfd5;
    --ink-soft: #c1b8ac;
    --ink-faint: #9e9589;
    --brass: #b8996e;
    --brass-hover: #c4a57b;
    --brass-ink: #121011;
    --brass-wash: rgba(184, 153, 110, 0.12);
    --primary: #e6dfd5;
    --secondary: #c1b8ac;
    --accent: #b8996e;
    --novel-accent: #c4a57b;
    --card-bg: rgba(28, 24, 25, 0.85);
    --gold-gradient: linear-gradient(135deg, #b8996e 0%, #c4a57b 100%);
    --rose-gradient: linear-gradient(135deg, #b8996e 0%, #c4a57b 100%);
    --indigo: #c4a57b;
}

::selection { background: rgba(184, 153, 110, 0.32); color: #e6dfd5; }

/* ==========================================================================
   THREE.JS 3D AMBIENT CANVAS
   ========================================================================== */
#three-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

#app-container {
    background: transparent !important;
    z-index: 1;
}

.full-view {
    background: rgba(17, 15, 16, 0.88) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#secret-vault {
    background: rgba(17, 15, 16, 0.82) !important;
}

.poetic-cursor::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    color: var(--brass);
    animation: blinkCursor 0.85s step-end infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
:focus-visible { outline: 2px solid rgba(196, 165, 123, 0.75); outline-offset: 2px; }
::-webkit-scrollbar-thumb { background: rgba(230, 223, 213, 0.15); }
::-webkit-scrollbar-thumb:hover { background: rgba(230, 223, 213, 0.25); }

body {
    background: #110f10;
    color: #e6dfd5;
}

#app-container,
.full-view,
#preloader,
#dynamic-section-loader {
    background: #110f10;
}

::selection { background: rgba(184, 153, 110, 0.32); color: #e6dfd5; }
:focus-visible { outline-color: rgba(196, 165, 123, 0.75); }
::-webkit-scrollbar-thumb { background: rgba(230, 223, 213, 0.15); }
::-webkit-scrollbar-thumb:hover { background: rgba(230, 223, 213, 0.25); }

.menu-button-grid .poem-btn,
.poem-btn,
.vintage-item-node {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 0;
    box-shadow: none;
    color: #e6dfd5;
}

.poem-btn:hover,
.vintage-item-node:hover,
.poem-btn:hover > i:first-child,
.poem-btn:hover > i:last-child:not(:first-child) {
    background: transparent !important;
    color: #d6b285;
}

.poem-btn > i:last-child:not(:first-child) {
    display: none;
}

.poem-btn > i:first-child,
.poem-btn > i:last-child:not(:first-child),
.notice-icon,
.support-writer-btn i {
    color: #b8996e;
}

.notice-container,
.auth-modal-box,
.auth-modal-box.vintage-paper-node,
.user-dropdown,
.bottom-sheet-modal,
.payment-modal-box,
.notice-container,
.pdf-card,
.video-card-item,
.novel-card,
.sayeri-card,
.monologue-card,
.vintage-paper-node,
.memory-item-card,
.vintage-comment-box,
.sayeri-toc-drawer,
.pay-number-box,
.binance-note,
#settings-panel,
#user-dropdown {
    background-color: rgba(28, 24, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

#poem-container-box,
#novel-reader,
#letter-reader,
#novel-pdf-area,
#letter-pdf-area,
.sayeri-card,
.monologue-card {
    background: rgba(28, 24, 25, 0.85);
    color: #e6dfd5;
}

#poem-content-display,
.story-text,
.sayeri-text,
.monologue-text,
.diary-text,
.novel-summary,
.notice-content {
    color: #e6dfd5;
}

.novel-meta,
.pdf-card-meta,
.pdf-card-desc,
.pay-subtitle,
.pdf-library-intro p,
.gallery-caption,
.typing-text,
.poet-vintage-bio,
.visitor-counter,
.toc-meta,
.toc-num,
.toc-empty {
    color: #9e9589;
}

.sub-btn,
.notice-btn,
.read-btn,
.auth-btn,
.contract-sign-btn,
.vault-send-btn,
#pay-binance .sub-btn,
#preorder-books-grid .pdf-card-action .sub-btn {
    background: #b8996e !important;
    color: #121011 !important;
    border: 1px solid transparent;
    box-shadow: none;
}

.sub-btn:hover,
.notice-btn:hover,
.read-btn:hover,
.auth-btn:hover,
.contract-sign-btn:hover,
.vault-send-btn:hover,
#pay-binance .sub-btn:hover,
#preorder-books-grid .pdf-card-action .sub-btn:hover {
    background: #c4a57b !important;
    color: #121011 !important;
}

.action-buttons-group .sub-btn,
#settings-panel .sub-btn,
#user-dropdown .sub-btn {
    background: rgba(184, 153, 110, 0.12) !important;
    color: #c4a57b !important;
    border: 1px solid rgba(196, 165, 123, 0.24);
}

.action-buttons-group .sub-btn:hover,
#settings-panel .sub-btn:hover,
#user-dropdown .sub-btn:hover {
    background: #b8996e !important;
    color: #121011 !important;
}

.read-btn { color: #121011 !important; }
.notice-content a:not(.notice-btn),
.sayeri-toc-btn:hover,
.toc-link:hover,
.toc-link:focus-visible,
.toc-search:focus {
    color: #c4a57b;
}

.reader-sticky-nav {
    background: rgba(17, 15, 16, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.auth-modal-overlay,
#payment-modal-overlay,
#comment-modal-overlay,
.sayeri-toc-overlay {
    background: rgba(8, 7, 7, 0.78);
}

.auth-modal-box.vintage-paper-node,
.bottom-sheet-modal,
.payment-modal-box,
.user-dropdown {
    background: rgba(28, 24, 25, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.social-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c1b8ac;
}

.social-btn:hover,
.social-btn.telegram-btn:hover,
.social-btn.instagram-btn:hover,
.social-btn.youtube-btn:hover {
    background: rgba(184, 153, 110, 0.12);
    color: #d6b285;
}

.filter-btn.active,
.pay-tab.active {
    background: rgba(184, 153, 110, 0.12);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e6dfd5;
}

.pay-tab,
.pay-number-box,
.binance-note {
    background: rgba(255, 255, 255, 0.035);
    color: #e6dfd5;
}

.pdf-card-author[style],
.pay-number-box button,
.bookmark-btn i[style*="color"],
#bookmark-toggle-btn i[style*="color"] {
    color: #c4a57b !important;
}

.bkash-color,
.nagad-color {
    background: #b8996e !important;
    color: #121011 !important;
}

#secret-vault {
    --v-bg: #110f10;
    --v-bar: #0d0b0c;
    --v-line: rgba(255, 255, 255, 0.08);
    --v-rose: #b8996e;
    --v-rose-soft: #c4a57b;
    --v-ink: #e6dfd5;
    --v-card: rgba(28, 24, 25, 0.85);
    background: #110f10;
}

#secret-vault .contract-paper,
#secret-vault .vault-custom-input,
.vault-page-dropdown,
#vault-page-select {
    background: rgba(28, 24, 25, 0.85);
    color: #e6dfd5;
    border-color: rgba(255, 255, 255, 0.08);
}

#secret-vault .vault-custom-input:focus {
    border-color: rgba(196, 165, 123, 0.45);
}

#secret-vault .vault-send-btn {
    background: #b8996e;
    color: #121011;
}

#secret-vault .vault-send-btn:hover {
    background: #c4a57b;
    color: #121011;
}

.vault-page-dropdown option,
#vault-page-select option {
    background: #1c1819 !important;
    color: #e6dfd5 !important;
}

#secret-vault .fingerprint-area,
#secret-vault .vault-custom-input:focus {
    border-color: rgba(196, 165, 123, 0.4);
}

#secret-vault .aura-field {
    background: radial-gradient(circle at 50% 50%, rgba(184, 153, 110, 0.12), rgba(17, 15, 16, 0.5) 65%, transparent 78%);
}

#secret-vault .quiz-btn[style*="46, 204, 113"],
#secret-vault .quiz-btn[style*="231, 76, 60"] {
    background: rgba(184, 153, 110, 0.2) !important;
    color: #e6dfd5 !important;
}

.sayeri-card.sayeri-flash::after {
    background: rgba(184, 153, 110, 0.12);
    box-shadow: inset 0 0 0 1px rgba(196, 165, 123, 0.5);
}

.site-editorial-footer {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 60px !important;
    padding-top: 35px !important;
    clear: both !important;
    position: relative !important;
    z-index: 10 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #9e9589;
}

.footer-divider-line {
    display: none;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col { min-width: 0; }

.footer-heading {
    margin: 0 0 14px;
    color: #d6b285;
    font-family: 'Cinzel', serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.footer-bio-text {
    margin: 0 0 14px;
    color: #9e9589;
    font-family: var(--font-read);
    font-size: .88rem;
    line-height: 1.9;
}

.footer-loc-tag {
    color: #9e9589;
    font-size: .82rem;
}

.footer-loc-tag i {
    margin-right: 5px;
    color: #b8996e;
}

.footer-links-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links-list a {
    display: inline-block;
    padding: 4px 0;
    color: #9e9589;
    font-size: .88rem;
    line-height: 1.55;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-links-list a:hover {
    color: #e6dfd5;
    transform: translateX(3px);
}

.footer-links-list a i {
    width: 1.2em;
    color: #b8996e;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 18px;
    color: #70685e;
    font-size: .8rem;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-signature {
    color: #9e9589;
    font-family: var(--font-display);
    font-size: .95rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .site-editorial-footer {
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 90px !important;
    }

    .site-editorial-footer .footer-content-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 16px !important;
    }

    .site-editorial-footer .brand-col {
        grid-column: 1 / -1 !important;
        text-align: left;
        margin-bottom: 8px;
    }

    .site-editorial-footer .footer-heading {
        font-size: .88rem;
        margin-bottom: 10px;
    }

    .site-editorial-footer .footer-links-list li {
        margin-bottom: 6px;
    }

    .site-editorial-footer .footer-links-list a {
        font-size: .84rem;
    }

    .site-editorial-footer .footer-bottom-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        text-align: left !important;
        font-size: .75rem !important;
    }
}

@media (max-width: 480px) {
    .site-editorial-footer .footer-content-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.menu-button-grid .poem-btn {
    display: flex !important;
    align-items: center !important;
}

.menu-sketch-icon {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    margin-right: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    border-radius: 4px;
    mix-blend-mode: screen;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.poem-btn:hover .menu-sketch-icon {
    transform: scale(1.15) rotate(-3deg);
    filter: brightness(1.2);
}
