@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600&family=UnifrakturCook:wght@700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg:          #0b0b12;
    --bg2:         #0e0e1a;
    --parchment:   #1a1728;
    --panel:       rgba(20, 17, 36, 0.92);
    --panel-light: rgba(26, 23, 40, 0.82);
    --text:        #cfc5e8;
    --muted:       #8a7aaa;
    --gold:        #d4a853;
    --gold-pale:   #e8cc8a;
    --gold-dim:    rgba(212, 168, 83, 0.18);
    --silver:      #b8b4d0;
    --bone:        #e8e0d0;
    --crimson:     #8b1a2e;
    --crimson-dim: rgba(139, 26, 46, 0.22);
    --iris:        #5d4e8c;
    --iris-dim:    rgba(93, 78, 140, 0.28);
    --line:        rgba(212, 168, 83, 0.22);
    --line-soft:   rgba(180, 160, 210, 0.15);
    --ink:         #f0ead8;
    --glow-gold:   rgba(212, 168, 83, 0.14);
    --glow-iris:   rgba(93, 78, 140, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 70% 40% at 50% -5%, rgba(93, 78, 140, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 15% 30%, rgba(139, 26, 46, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 85% 25%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 47px,
            rgba(180, 160, 210, 0.028) 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            rgba(180, 160, 210, 0.020) 48px
        );
    color: var(--text);
    font-family: 'IM Fell English', 'Crimson Text', Georgia, serif;
    font-size: 14px;
    line-height: 1.72;
    letter-spacing: 0.3px;
    margin: 0;
    text-align: justify;
    min-height: 100vh;
}

/* subtle noise grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* horizontal rule glyphs */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(212, 168, 83, 0.6) 1px, transparent 1.5px);
    background-size: 28px 28px;
}

body::-webkit-scrollbar { width: 5px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--iris); border-radius: 3px; }

img { max-width: 100%; }

/* ── CONTAINER ── */
#container {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 28px auto;
    padding: 0 14px 28px;
}

/* ── LINKS ── */
a {
    color: var(--gold-pale);
    text-decoration: none;
    transition: color 0.18s, text-shadow 0.18s;
}
a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 168, 83, 0.5);
}

/* ── HEADER ── */
header {
    position: relative;
    text-align: center;
    padding: 28px 8px 18px;
}

/* decorative runic border above header */
header::before {
    content: "ᛉ ✦ ☽ ✦ 𓂀 ✦ ☾ ✦ ᛉ";
    display: block;
    margin-bottom: 14px;
    color: var(--gold);
    letter-spacing: 10px;
    font-size: 13px;
    opacity: 0.6;
    font-family: 'Cinzel', serif;
}

header::after {
    content: "";
    display: block;
    margin: 14px auto 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), rgba(212, 168, 83, 0.4), var(--gold), transparent);
}

header img.hero {
    max-width: 200px;
    height: auto;
    opacity: 0.55;
    filter: grayscale(100%) sepia(25%) contrast(110%) brightness(0.85);
    mix-blend-mode: screen;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 83, 0.3);
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(93, 78, 140, 0.3),
        0 0 28px rgba(93, 78, 140, 0.22),
        0 0 55px rgba(212, 168, 83, 0.08);
}

.site-name {
    margin-top: 14px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--gold);
    text-shadow:
        0 0 18px rgba(212, 168, 83, 0.5),
        0 0 40px rgba(212, 168, 83, 0.2);
    text-transform: lowercase;
}

.site-name img {
    vertical-align: middle;
    opacity: 0.7;
    filter: sepia(1) hue-rotate(15deg) brightness(1.2);
}

.slogan {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 13px;
    margin-top: 7px;
    color: var(--muted);
    letter-spacing: 1px;
}

/* ── NAV ── */
nav {
    text-align: center;
    padding: 10px 4px 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

nav::before {
    content: "⊕";
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 6px;
    color: var(--gold);
    font-size: 12px;
    opacity: 0.6;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 13px;
    margin: 0 3px 5px 0;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--silver);
    text-transform: lowercase;
    border: 1px solid rgba(180, 160, 210, 0.2);
    border-radius: 0;
    background: transparent;
    clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0% 50%);
    transition: all 0.2s;
}

nav a.active,
nav a:hover {
    background: rgba(212, 168, 83, 0.1);
    border-color: rgba(212, 168, 83, 0.45);
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 168, 83, 0.4);
    clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0% 50%);
}

/* ── CONTENT LAYOUT ── */
#content {
    display: flex;
    gap: 12px;
    padding-top: 16px;
}

/* ── SIDEBAR ── */
.sidebar {
    width: 165px;
    flex-shrink: 0;
    padding: 4px;
    font-size: 13px;
}

.sidebar > div,
.sidebar section {
    margin-bottom: 10px;
}

.title {
    font-family: 'UnifrakturCook', cursive;
    font-size: 17px;
    margin-bottom: 5px;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(212, 168, 83, 0.35);
}

.title::before {
    content: "✦ ";
    color: var(--crimson);
    font-size: 10px;
}

.divider {
    height: 0;
    border-bottom: 1px solid var(--line);
    margin: 10px 0;
    position: relative;
}

.divider::after {
    content: "✧";
    position: absolute;
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 4px;
    color: var(--muted);
    font-size: 10px;
}

/* ── MAIN ── */
main {
    flex: 1;
    padding: 10px 14px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    min-height: 500px;
    position: relative;
}

/* corner ornament top-left */
main::before {
    content: "✤";
    position: absolute;
    top: -8px;
    left: -8px;
    color: var(--gold);
    font-size: 14px;
    background: var(--bg);
    padding: 0 2px;
    opacity: 0.55;
}

main::after {
    content: "✤";
    position: absolute;
    top: -8px;
    right: -8px;
    color: var(--gold);
    font-size: 14px;
    background: var(--bg);
    padding: 0 2px;
    opacity: 0.55;
}

.main-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212, 168, 83, 0.45);
    margin: 0 0 6px;
    letter-spacing: 3px;
    text-transform: lowercase;
    line-height: 1.3;
}

.main-title::before {
    content: "☽ ";
    color: var(--crimson);
    font-size: 14px;
}

.sub-title {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* ── CARDS ── */
.entry-card,
.preview-card,
.game-card,
.link-card,
.status-card {
    background: linear-gradient(135deg, rgba(20, 17, 36, 0.95), rgba(26, 23, 40, 0.85));
    border: 1px solid rgba(180, 160, 210, 0.18);
    border-top: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 2px;
    padding: 12px 14px;
    margin-bottom: 12px;
    position: relative;
    box-shadow:
        0 2px 12px rgba(0,0,0,0.35),
        0 0 0 1px rgba(93, 78, 140, 0.08) inset;
}

/* top-left and bottom-right corner accents */
.entry-card::before,
.preview-card::before,
.game-card::before,
.link-card::before,
.status-card::before {
    content: "⌐";
    position: absolute;
    top: 4px;
    left: 6px;
    color: var(--gold);
    opacity: 0.35;
    font-size: 14px;
    line-height: 1;
}

.entry-card::after,
.preview-card::after,
.game-card::after,
.link-card::after,
.status-card::after {
    content: "¬";
    position: absolute;
    bottom: 4px;
    right: 6px;
    color: var(--gold);
    opacity: 0.35;
    font-size: 14px;
    line-height: 1;
    transform: rotate(180deg);
}

.preview-card { cursor: pointer; }

.preview-card:hover {
    border-color: rgba(212, 168, 83, 0.38);
    border-top-color: rgba(212, 168, 83, 0.65);
    background: linear-gradient(135deg, rgba(26, 23, 40, 0.98), rgba(30, 25, 50, 0.92));
    box-shadow:
        0 4px 18px rgba(0,0,0,0.45),
        0 0 22px rgba(212, 168, 83, 0.06) inset;
    transform: translateY(-1px);
    transition: all 0.18s;
}

.preview-card h3,
.game-card h3,
.link-card h3,
.entry-card h3 {
    margin: 0 0 6px;
    font-family: 'UnifrakturCook', cursive;
    font-size: 19px;
    font-weight: normal;
    color: var(--gold-pale);
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(212, 168, 83, 0.2);
}

.tagline,
.small-note,
.meta {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 12px;
    color: var(--muted);
}

/* ── LISTS ── */
ul.clean-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
ul.clean-list li {
    margin-bottom: 7px;
    padding-left: 14px;
    position: relative;
}
ul.clean-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--crimson);
    font-size: 9px;
    top: 4px;
}

ul {
    padding-left: 18px;
}
ul li {
    margin-bottom: 5px;
}
ul li::marker {
    color: var(--gold);
    content: "✧  ";
}

/* ── BLOCKQUOTE ── */
blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 2px solid var(--crimson);
    background: rgba(139, 26, 46, 0.07);
    color: var(--bone);
    font-style: italic;
    font-family: 'IM Fell English', serif;
    font-size: 14px;
}

/* ── DIVIDER ── */
.divider-ornament {
    text-align: center;
    margin: 12px 0;
    color: var(--gold);
    opacity: 0.4;
    letter-spacing: 8px;
    font-size: 11px;
}

/* ── BUTTONS ── */
button,
.action-button {
    border: 1px solid rgba(212, 168, 83, 0.38);
    background: transparent;
    color: var(--gold-pale);
    padding: 7px 16px;
    border-radius: 0;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: lowercase;
    clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0% 50%);
    transition: all 0.2s;
}

button:hover,
.action-button:hover {
    background: rgba(212, 168, 83, 0.12);
    border-color: rgba(212, 168, 83, 0.7);
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 168, 83, 0.5);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.1);
}

/* ── OUTPUT BOX (divination) ── */
.output-box {
    min-height: 80px;
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(10, 8, 20, 0.7);
    border: 1px solid rgba(93, 78, 140, 0.35);
    border-top: 1px solid rgba(212, 168, 83, 0.2);
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--bone);
    position: relative;
}

.output-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 22px,
        rgba(180, 160, 210, 0.03) 23px
    );
    pointer-events: none;
}

/* ── STAMP ── */
.stamp {
    display: inline-block;
    padding: 1px 7px;
    margin: 2px 4px 0 0;
    border: 1px solid rgba(212, 168, 83, 0.4);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: lowercase;
    background: rgba(212, 168, 83, 0.06);
}

/* ── NOTE BOX ── */
.note-box {
    background: rgba(93, 78, 140, 0.1);
    border-left: 2px solid var(--iris);
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 13px;
}

/* ── CODE ── */
code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(180, 160, 210, 0.15);
    padding: 2px 6px;
    color: var(--silver);
    display: inline-block;
    word-break: break-all;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 24px 8px;
    font-size: 12px;
    color: var(--muted);
    font-family: 'IM Fell English', serif;
    font-style: italic;
    position: relative;
    margin-top: 10px;
}

footer::before {
    content: "ᚱ ✦ 𓆙 ✦ ᚱ";
    display: block;
    margin-bottom: 10px;
    letter-spacing: 8px;
    color: var(--gold);
    opacity: 0.35;
    font-style: normal;
    font-family: serif;
    font-size: 12px;
}

footer p { margin: 5px 0; }
footer a { color: var(--gold-pale); }

/* ── MODAL / POPUP ── */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 5, 15, 0.82);
    padding: 18px;
    z-index: 999;
    backdrop-filter: blur(3px);
}

.modal.open { display: flex; }

.modal-box {
    width: min(700px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: linear-gradient(160deg, #12101e, #1a1728);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 2px;
    padding: 22px 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(93, 78, 140, 0.15) inset,
        0 0 50px rgba(93, 78, 140, 0.08) inset;
    position: relative;
}

.modal-box::before {
    content: "✶ ✶ archived working ✶ ✶";
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: lowercase;
    text-align: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    clip-path: none;
    border-radius: 0;
    padding: 4px 10px;
    font-size: 10px;
    border-color: rgba(139, 26, 46, 0.5);
    color: var(--muted);
}

.modal-close:hover {
    border-color: var(--crimson);
    color: #c94060;
    text-shadow: 0 0 8px rgba(139, 26, 46, 0.5);
    background: rgba(139, 26, 46, 0.1);
}

.modal-content h2 {
    margin: 0 0 6px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212, 168, 83, 0.4);
    letter-spacing: 2px;
}

.modal-content .modal-subtitle {
    margin-bottom: 16px;
    color: var(--muted);
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.modal-content p:first-child { margin-top: 0; }
.modal-content p { color: var(--text); line-height: 1.78; }
.modal-content strong { color: var(--gold-pale); }

/* ── MODAL SCROLLBAR ── */
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.modal-box::-webkit-scrollbar-thumb { background: var(--iris); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    #container { max-width: 100%; padding: 0 10px 20px; }

    #content {
        flex-direction: column;
        gap: 14px;
    }

    .sidebar {
        width: auto;
        padding: 4px;
    }

    main {
        border-left: none;
        border-right: none;
        padding: 10px 4px;
        min-height: unset;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    nav a {
        clip-path: none;
        border-radius: 0;
        font-size: 10px;
        padding: 4px 10px;
    }

    .site-name { font-size: 16px; letter-spacing: 3px; }
}

/* ── SMOKY VIOLET PALETTE OVERRIDE ── */
:root {
    --bg:          #09090f;
    --bg2:         #100f18;
    --parchment:   #181622;
    --panel:       rgba(18, 16, 27, 0.92);
    --panel-light: rgba(28, 25, 39, 0.84);

    --text:        #d4cfde;
    --muted:       #9389a8;

    /* keeping the old variable names so you don't have to rewrite everything */
    --gold:        #8d7aa8;
    --gold-pale:   #b9abcf;
    --gold-dim:    rgba(141, 122, 168, 0.18);

    --silver:      #c1bbcf;
    --bone:        #e5dfeb;

    --crimson:     #6b4b63;
    --crimson-dim: rgba(107, 75, 99, 0.22);

    --iris:        #6d638c;
    --iris-dim:    rgba(109, 99, 140, 0.28);

    --line:        rgba(185, 171, 207, 0.18);
    --line-soft:   rgba(185, 171, 207, 0.10);

    --ink:         #f2eef7;
    --glow-gold:   rgba(141, 122, 168, 0.12);
    --glow-iris:   rgba(109, 99, 140, 0.16);
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 70% 42% at 50% -6%, rgba(109, 99, 140, 0.20) 0%, transparent 60%),
        radial-gradient(ellipse 42% 32% at 16% 30%, rgba(107, 75, 99, 0.10) 0%, transparent 52%),
        radial-gradient(ellipse 40% 28% at 84% 24%, rgba(185, 171, 207, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 47px,
            rgba(185, 171, 207, 0.022) 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            rgba(185, 171, 207, 0.016) 48px
        );
}

body::after {
    opacity: 0.025;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(185, 171, 207, 0.35) 1px, transparent 1.5px);
}

a {
    color: var(--gold-pale);
}

a:hover {
    color: var(--ink);
    text-shadow: 0 0 8px rgba(185, 171, 207, 0.35);
}

header::before {
    color: var(--gold-pale);
    opacity: 0.55;
}

header::after {
    background: linear-gradient(
        to right,
        transparent,
        rgba(185, 171, 207, 0.18),
        var(--gold),
        rgba(185, 171, 207, 0.18),
        transparent
    );
}

header img.hero {
    opacity: 0.62;
    filter: grayscale(100%) contrast(112%) brightness(0.82);
    border: 1px solid rgba(185, 171, 207, 0.18);
    box-shadow:
        0 0 0 1px rgba(109, 99, 140, 0.22),
        0 0 28px rgba(109, 99, 140, 0.18),
        0 0 55px rgba(185, 171, 207, 0.05);
}

.site-name {
    color: var(--gold-pale);
    text-shadow:
        0 0 16px rgba(185, 171, 207, 0.22),
        0 0 36px rgba(109, 99, 140, 0.16);
}

.site-name img {
    filter: grayscale(1) brightness(1.08);
}

nav {
    border-bottom: 1px solid var(--line);
}

nav::before {
    background: var(--bg);
    color: var(--gold-pale);
}

nav a {
    color: var(--silver);
    border: 1px solid rgba(185, 171, 207, 0.14);
    background: rgba(255, 255, 255, 0.01);
}

nav a.active,
nav a:hover {
    background: rgba(109, 99, 140, 0.12);
    border-color: rgba(185, 171, 207, 0.34);
    color: var(--gold-pale);
    text-shadow: 0 0 8px rgba(185, 171, 207, 0.20);
}

.title,
.main-title,
.modal-content h2 {
    color: var(--gold-pale);
    text-shadow: 0 0 12px rgba(185, 171, 207, 0.18);
}

.title::before,
.main-title::before,
ul.clean-list li::before {
    color: var(--crimson);
}

.divider,
main,
footer {
    border-color: var(--line);
}

main::before,
main::after,
.divider-ornament,
footer::before {
    color: var(--gold-pale);
    opacity: 0.45;
}

.entry-card,
.preview-card,
.game-card,
.link-card,
.status-card {
    background: linear-gradient(135deg, rgba(18, 16, 27, 0.96), rgba(31, 28, 42, 0.88));
    border: 1px solid rgba(185, 171, 207, 0.12);
    border-top: 1px solid rgba(185, 171, 207, 0.20);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(109, 99, 140, 0.06) inset;
}

.entry-card::before,
.preview-card::before,
.game-card::before,
.link-card::before,
.status-card::before,
.entry-card::after,
.preview-card::after,
.game-card::after,
.link-card::after,
.status-card::after {
    color: var(--gold-pale);
    opacity: 0.24;
}

.preview-card:hover {
    border-color: rgba(185, 171, 207, 0.22);
    border-top-color: rgba(185, 171, 207, 0.40);
    background: linear-gradient(135deg, rgba(24, 21, 35, 0.98), rgba(38, 33, 53, 0.92));
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(109, 99, 140, 0.07) inset;
}

.preview-card h3,
.game-card h3,
.link-card h3,
.entry-card h3 {
    color: var(--gold-pale);
    text-shadow: 0 0 8px rgba(185, 171, 207, 0.16);
}

ul li::marker {
    color: var(--gold-pale);
}

blockquote {
    border-left: 2px solid var(--crimson);
    background: rgba(107, 75, 99, 0.08);
    color: var(--bone);
}

button,
.action-button {
    border: 1px solid rgba(185, 171, 207, 0.24);
    background: rgba(109, 99, 140, 0.05);
    color: var(--gold-pale);
}

button:hover,
.action-button:hover {
    background: rgba(109, 99, 140, 0.12);
    border-color: rgba(185, 171, 207, 0.46);
    color: var(--ink);
    text-shadow: 0 0 8px rgba(185, 171, 207, 0.20);
    box-shadow: 0 0 12px rgba(109, 99, 140, 0.08);
}

.output-box {
    background: rgba(9, 8, 16, 0.74);
    border: 1px solid rgba(109, 99, 140, 0.30);
    border-top: 1px solid rgba(185, 171, 207, 0.14);
}

.stamp {
    border: 1px solid rgba(185, 171, 207, 0.26);
    color: var(--gold-pale);
    background: rgba(109, 99, 140, 0.08);
}

.note-box {
    background: rgba(109, 99, 140, 0.10);
    border-left: 2px solid var(--iris);
}

code {
    border: 1px solid rgba(185, 171, 207, 0.12);
    color: var(--silver);
}

.modal {
    background: rgba(5, 5, 12, 0.86);
}

.modal-box {
    background: linear-gradient(160deg, #110f19, #1b1826);
    border: 1px solid rgba(185, 171, 207, 0.18);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(109, 99, 140, 0.12) inset,
        0 0 50px rgba(109, 99, 140, 0.06) inset;
}

.modal-box::before,
.modal-content .modal-subtitle {
    border-bottom: 1px solid var(--line);
}

.modal-close {
    border-color: rgba(107, 75, 99, 0.42);
    color: var(--muted);
}

.modal-close:hover {
    border-color: var(--crimson);
    color: #d1b6d4;
    text-shadow: 0 0 8px rgba(107, 75, 99, 0.45);
    background: rgba(107, 75, 99, 0.10);
}

.modal-content strong,
footer a {
    color: var(--gold-pale);
}

