/* Base Variables & Reset */
:root {
    --primary-color: #e63946;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --border-gray: #e0e0e0;
    --page-bg: #fafafa;
    --surface-bg: #ffffff;
    --surface-soft: #f6f6f6;
    --button-bg: #1a1a1a;
    --button-text: #ffffff;
    --button-hover-bg: #e9869c;
    --button-hover-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--page-bg);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.install-cloud-prompt {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 120%);
    width: min(78vw, 250px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.install-cloud-prompt.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
    animation: installCloudDrift 9s ease-in-out infinite;
}

.install-cloud-shape {
    position: relative;
    width: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
}

.install-cloud-hitarea {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
    line-height: 0;
}

.install-cloud-image {
    width: 108%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 26px rgba(55, 5, 19, 0.28));
}

.install-cloud-close {
    position: absolute;
    top: -10px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 228, 236, 0.55);
    background: rgba(55, 0, 16, 0.78);
    color: #fff7fb;
    cursor: pointer;
    z-index: 2;
}

@keyframes installCloudDrift {
    0% {
        transform: translate(-50%, 0) translate3d(0, 0, 0);
    }

    25% {
        transform: translate(-50%, 0) translate3d(8px, -6px, 0);
    }

    50% {
        transform: translate(-50%, 0) translate3d(-6px, -12px, 0);
    }

    75% {
        transform: translate(-50%, 0) translate3d(-10px, -4px, 0);
    }

    100% {
        transform: translate(-50%, 0) translate3d(0, 0, 0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.translate-anchor {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#goog-gt-tt,
.goog-te-banner-frame,
.goog-te-gadget-icon,
.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

body[data-theme="paper"] {
    --primary-color: #b45f06;
    --text-dark: #2a221c;
    --border-gray: #dccbb8;
    --page-bg: #f5efe6;
    --surface-bg: #fffaf3;
    --surface-soft: #f1e5d5;
    --button-bg: #6f3d12;
    --button-text: #fffaf3;
}

body[data-theme="midnight"] {
    --primary-color: #ff6b6b;
    --text-dark: #f5f5f5;
    --text-light: #f5f5f5;
    --border-gray: #2f3542;
    --page-bg: #10141c;
    --surface-bg: #171d27;
    --surface-soft: #1d2430;
    --button-bg: #ff6b6b;
    --button-text: #10141c;
    --button-hover-bg: #ff8f8f;
    --button-hover-text: #10141c;
}

body[data-theme="graphite"] {
    --primary-color: #8ab4f8;
    --text-dark: #edf2f7;
    --text-light: #edf2f7;
    --border-gray: #303744;
    --page-bg: #0d1117;
    --surface-bg: #161b22;
    --surface-soft: #1f2630;
    --button-bg: #8ab4f8;
    --button-text: #0d1117;
    --button-hover-bg: #a8c7fa;
    --button-hover-text: #0d1117;
}

body[data-theme="ember"] {
    --primary-color: #ff7b54;
    --text-dark: #fff3eb;
    --text-light: #fff3eb;
    --border-gray: #4a2a24;
    --page-bg: #1a1111;
    --surface-bg: #241717;
    --surface-soft: #311f1f;
    --button-bg: #ff7b54;
    --button-text: #1a1111;
    --button-hover-bg: #ff9b7d;
    --button-hover-text: #1a1111;
}

body[data-theme="nord"] {
    --primary-color: #88c0d0;
    --text-dark: #e5eef5;
    --text-light: #e5eef5;
    --border-gray: #3b4b5f;
    --page-bg: #111823;
    --surface-bg: #17212f;
    --surface-soft: #202d3d;
    --button-bg: #88c0d0;
    --button-text: #111823;
    --button-hover-bg: #a3d4df;
    --button-hover-text: #111823;
}

body[data-theme="obsidian"] {
    --primary-color: #7c3aed;
    --text-dark: #f3f0ff;
    --text-light: #f3f0ff;
    --border-gray: #322447;
    --page-bg: #0f0a16;
    --surface-bg: #171020;
    --surface-soft: #21162d;
    --button-bg: #7c3aed;
    --button-text: #f8f5ff;
    --button-hover-bg: #9b6bff;
    --button-hover-text: #f8f5ff;
}

body[data-theme="candy-hearts"] {
    --primary-color: #ff5ea8;
    --text-dark: #ffe7f4;
    --text-light: #fff5fb;
    --border-gray: #56304d;
    --page-bg: #140812;
    --surface-bg: rgba(35, 14, 31, 0.95);
    --surface-soft: rgba(53, 21, 48, 0.92);
    --button-bg: #ff5ea8;
    --button-text: #240816;
    --button-hover-bg: #ff8ac0;
    --button-hover-text: #240816;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 123, 188, 0.22), transparent 18%),
        radial-gradient(circle at 85% 16%, rgba(255, 92, 161, 0.16), transparent 16%),
        radial-gradient(circle at 50% 100%, rgba(255, 119, 186, 0.12), transparent 28%),
        linear-gradient(180deg, #140812 0%, #1d0b19 52%, #12060f 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body[data-theme="candy-hearts"] .navbar {
    background: rgba(28, 10, 25, 0.92);
    border-bottom-color: rgba(255, 122, 188, 0.18);
    backdrop-filter: blur(14px);
}

body[data-theme="candy-hearts"] .featured-card,
body[data-theme="candy-hearts"] .card,
body[data-theme="candy-hearts"] .leaderboard-card,
body[data-theme="candy-hearts"] .site-update-card,
body[data-theme="candy-hearts"] .member-thoughts-panel,
body[data-theme="candy-hearts"] .hall-fame-side,
body[data-theme="candy-hearts"] .community-honor-shell,
body[data-theme="candy-hearts"] .profile-editor,
body[data-theme="candy-hearts"] .static-page-card,
body[data-theme="candy-hearts"] .tracker-card,
body[data-theme="candy-hearts"] .user-article-card,
body[data-theme="candy-hearts"] .community-honor-shell .hall-fame-card,
body[data-theme="candy-hearts"] .footer-subscribe-shell,
body[data-theme="candy-hearts"] .image-search-card,
body[data-theme="candy-hearts"] .image-section-block,
body[data-theme="candy-hearts"] .admin-panel {
    background:
        linear-gradient(180deg, rgba(42, 16, 37, 0.96) 0%, rgba(58, 22, 50, 0.92) 100%);
    border-color: rgba(255, 128, 193, 0.18);
    box-shadow: 0 18px 40px rgba(10, 3, 9, 0.32);
}

body[data-theme="candy-hearts"] .admin-eyebrow,
body[data-theme="candy-hearts"] .article-view-category,
body[data-theme="candy-hearts"] .breaking-label,
body[data-theme="candy-hearts"] .footer-page-link strong,
body[data-theme="candy-hearts"] .logo span,
body[data-theme="candy-hearts"] .leaderboard-score,
body[data-theme="candy-hearts"] .source-reference,
body[data-theme="candy-hearts"] .read-more-btn,
body[data-theme="candy-hearts"] .active-nav-link {
    color: #ff7dbc;
}

body[data-theme="candy-hearts"] .btn-primary,
body[data-theme="candy-hearts"] .btn-secondary,
body[data-theme="candy-hearts"] .btn-inline,
body[data-theme="candy-hearts"] .engagement-pill,
body[data-theme="candy-hearts"] .thought-toggle-btn {
    border-color: rgba(255, 133, 195, 0.34);
    background: rgba(255, 243, 249, 0.94);
    color: #3a102c;
    box-shadow: 0 8px 0 rgba(255, 123, 188, 0.25), 0 14px 24px rgba(16, 4, 13, 0.22);
}

body[data-theme="candy-hearts"] .market-trends-bar,
body[data-theme="candy-hearts"] .breaking-strip,
body[data-theme="candy-hearts"] .site-footer {
    background: rgba(24, 8, 21, 0.94);
    border-color: rgba(255, 123, 188, 0.18);
}

body[data-theme="candy-hearts"] .logo-link,
body[data-theme="candy-hearts"] h1,
body[data-theme="candy-hearts"] h2,
body[data-theme="candy-hearts"] h3 {
    letter-spacing: 0.01em;
}

body[data-theme="candy-hearts"] .footer-page-link span,
body[data-theme="candy-hearts"] .user-panel-copy,
body[data-theme="candy-hearts"] .author-badge-handle,
body[data-theme="candy-hearts"] .image-search-credit {
    color: #d9abc4;
}

body[data-theme="promised-days"] {
    --primary-color: #ff8f7a;
    --text-dark: #19314d;
    --text-light: #f7fbff;
    --border-gray: #b9d5e6;
    --page-bg: #d9effa;
    --surface-bg: rgba(247, 252, 255, 0.88);
    --surface-soft: rgba(228, 244, 250, 0.96);
    --button-bg: #4476a7;
    --button-text: #f8fbff;
    --button-hover-bg: #ffb49a;
    --button-hover-text: #19314d;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 34%),
        linear-gradient(180deg, #87c9d8 0%, #ccecf6 38%, #f8e3bf 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body[data-theme="promised-days"] .navbar {
    background: rgba(236, 247, 252, 0.84);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(85, 135, 170, 0.24);
}

body[data-theme="promised-days"] .featured-card,
body[data-theme="promised-days"] .card,
body[data-theme="promised-days"] .leaderboard-card,
body[data-theme="promised-days"] .site-update-card,
body[data-theme="promised-days"] .member-thoughts-panel,
body[data-theme="promised-days"] .hall-fame-side,
body[data-theme="promised-days"] .community-honor-shell,
body[data-theme="promised-days"] .profile-editor,
body[data-theme="promised-days"] .static-page-card,
body[data-theme="promised-days"] .tracker-card,
body[data-theme="promised-days"] .user-article-card,
body[data-theme="promised-days"] .community-honor-shell .hall-fame-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(235, 246, 250, 0.9) 100%);
    border-color: rgba(112, 165, 194, 0.35);
    box-shadow: 0 16px 40px rgba(78, 126, 159, 0.12);
}

body[data-theme="promised-days"] .admin-eyebrow,
body[data-theme="promised-days"] .article-view-category,
body[data-theme="promised-days"] .breaking-label,
body[data-theme="promised-days"] .footer-page-link strong {
    color: #ef7d72;
}

body[data-theme="promised-days"] .logo span,
body[data-theme="promised-days"] .active-nav-link,
body[data-theme="promised-days"] .leaderboard-score,
body[data-theme="promised-days"] .source-reference,
body[data-theme="promised-days"] .read-more-btn {
    color: #2a6aa2;
}

body[data-theme="promised-days"] h1,
body[data-theme="promised-days"] h2,
body[data-theme="promised-days"] h3,
body[data-theme="promised-days"] .logo-link {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.01em;
}

body[data-theme="promised-days"] .featured-card h2,
body[data-theme="promised-days"] .article-view-title {
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.45);
}

body[data-theme="promised-days"] .thought-toggle-btn,
body[data-theme="promised-days"] .btn-primary,
body[data-theme="promised-days"] .btn-secondary {
    border-color: rgba(76, 118, 165, 0.38);
}

body[data-theme="promised-days"] .thought-toggle-btn,
body[data-theme="promised-days"] .btn-primary,
body[data-theme="promised-days"] .btn-secondary,
body[data-theme="promised-days"] .btn-inline,
body[data-theme="promised-days"] .engagement-pill {
    background: rgba(255, 252, 247, 0.94);
    box-shadow: 0 8px 0 rgba(126, 176, 214, 0.28), 0 12px 24px rgba(69, 112, 145, 0.12);
}

body[data-theme="promised-days"] .market-trends-bar,
body[data-theme="promised-days"] .breaking-strip {
    background: rgba(27, 49, 77, 0.9);
    border-color: rgba(177, 213, 231, 0.2);
}

#promised-scene.hidden {
    display: none;
}

.promised-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.candy-hearts-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.candy-heart,
.candy-glitter {
    position: absolute;
    opacity: 0.42;
    filter: drop-shadow(0 8px 14px rgba(255, 89, 167, 0.24));
}

.candy-heart {
    width: 28px;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.42), transparent 28%),
        linear-gradient(180deg, rgba(255, 120, 192, 0.95) 0%, rgba(255, 72, 150, 0.92) 100%);
    transform: rotate(-45deg);
    border-radius: 6px 6px 3px 3px;
    animation: candyHeartFloat 20s linear infinite;
    pointer-events: auto;
    touch-action: none;
}

.candy-heart::before,
.candy-heart::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
}

.candy-heart::before {
    top: -50%;
    left: 0;
}

.candy-heart::after {
    left: 50%;
    top: 0;
}

.candy-glitter {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,194,224,0.65) 48%, transparent 72%);
    animation: candyGlitterFloat 14s linear infinite;
}

.candy-heart-one { left: 8%; bottom: -5%; --heart-float-duration: 19s; animation-duration: 19s; animation-delay: -2s; --heart-scale: 0.9; }
.candy-heart-two { left: 21%; bottom: -8%; --heart-float-duration: 24s; animation-duration: 24s; animation-delay: -12s; --heart-scale: 1.1; }
.candy-heart-three { left: 36%; bottom: -10%; --heart-float-duration: 21s; animation-duration: 21s; animation-delay: -7s; --heart-scale: 0.78; }
.candy-heart-four { left: 52%; bottom: -7%; --heart-float-duration: 26s; animation-duration: 26s; animation-delay: -15s; --heart-scale: 1.22; }
.candy-heart-five { left: 66%; bottom: -12%; --heart-float-duration: 18s; animation-duration: 18s; animation-delay: -5s; --heart-scale: 0.88; }
.candy-heart-six { left: 78%; bottom: -9%; --heart-float-duration: 22s; animation-duration: 22s; animation-delay: -11s; --heart-scale: 1.04; }
.candy-heart-seven { left: 88%; bottom: -6%; --heart-float-duration: 20s; animation-duration: 20s; animation-delay: -4s; --heart-scale: 0.7; }
.candy-heart-eight { left: 93%; bottom: -14%; --heart-float-duration: 25s; animation-duration: 25s; animation-delay: -16s; --heart-scale: 1.16; }

.candy-glitter-one { left: 14%; bottom: 8%; animation-delay: -1s; }
.candy-glitter-two { left: 44%; bottom: 2%; animation-delay: -6s; }
.candy-glitter-three { left: 71%; bottom: 12%; animation-delay: -10s; }
.candy-glitter-four { left: 89%; bottom: 5%; animation-delay: -3s; }

.candy-heart.is-held {
    animation-play-state: paused !important;
    opacity: 0.92;
    filter: drop-shadow(0 0 18px rgba(255, 169, 216, 0.46));
}

body.candy-hearts-party .candy-heart {
    animation-name: candyHeartFloat, candyHeartColorShift;
    animation-duration: var(--heart-float-duration, 20s), 2.4s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, infinite;
}

.promised-scene-sky,
.promised-horizon-glow,
.promised-rails,
.promised-grass,
.promised-stars,
.promised-rain,
.promised-snow {
    position: absolute;
    inset: 0;
}

.promised-scene-sky {
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,0.32), transparent 16%),
        linear-gradient(180deg, rgba(146, 209, 224, 0.68) 0%, rgba(221, 242, 250, 0.38) 52%, transparent 100%);
}

.promised-stars {
    opacity: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.95) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(210,235,255,0.88) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(255,255,255,0.82) 0 1px, transparent 1.5px);
    background-size: 180px 180px, 240px 240px, 320px 320px;
    background-position: 0 0, 40px 90px, 120px 20px;
    transition: opacity 0.6s ease;
}

.promised-sun,
.promised-moon {
    position: absolute;
    top: 70px;
    right: 12%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.promised-sun {
    background: radial-gradient(circle, rgba(255, 248, 197, 0.98) 0%, rgba(255, 202, 134, 0.92) 45%, rgba(255, 173, 120, 0.08) 72%);
    box-shadow: 0 0 55px rgba(255, 209, 121, 0.58);
}

.promised-moon {
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.98) 0%, rgba(219,236,252,0.92) 54%, rgba(192,216,240,0.08) 75%);
    box-shadow: 0 0 46px rgba(214, 232, 255, 0.38);
    opacity: 0;
    transform: translateY(18px);
}

.promised-cloud {
    position: absolute;
    top: 14%;
    left: -18%;
    width: 240px;
    height: 74px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(1px);
    animation: promisedCloud 46s linear infinite;
}

.promised-cloud::before,
.promised-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.promised-cloud::before {
    width: 90px;
    height: 90px;
    left: 34px;
    top: -34px;
}

.promised-cloud::after {
    width: 120px;
    height: 120px;
    right: 26px;
    top: -48px;
}

.promised-cloud-two {
    top: 26%;
    width: 320px;
    height: 84px;
    animation-duration: 58s;
    animation-delay: -16s;
    opacity: 0.72;
}

.promised-cloud-three {
    top: 36%;
    width: 210px;
    height: 64px;
    animation-duration: 66s;
    animation-delay: -28s;
    opacity: 0.55;
}

.promised-airplane {
    position: absolute;
    top: 26%;
    left: -12%;
    width: 90px;
    height: 16px;
    opacity: 0.42;
    animation: promisedPlane 34s linear infinite;
}

.promised-airplane::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,0.95) 8% 70%, transparent 70%),
        linear-gradient(140deg, transparent 0 28%, rgba(255,255,255,0.95) 28% 58%, transparent 58%),
        linear-gradient(40deg, transparent 0 34%, rgba(255,255,255,0.95) 34% 60%, transparent 60%);
    clip-path: polygon(0 52%, 58% 38%, 100% 48%, 60% 62%);
}

.promised-airplane::after {
    content: "";
    position: absolute;
    left: -220px;
    top: 7px;
    width: 240px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 55%, rgba(255,255,255,0.9) 100%);
}

.promised-horizon-glow {
    bottom: 22%;
    top: auto;
    height: 180px;
    background: radial-gradient(circle at center, rgba(255, 222, 173, 0.42) 0%, rgba(255, 205, 157, 0.12) 42%, transparent 72%);
}

.promised-rails {
    inset: auto 0 0;
    height: 38%;
    background:
        linear-gradient(180deg, transparent 0%, rgba(75, 85, 102, 0.12) 10%, rgba(75, 85, 102, 0.36) 100%);
    clip-path: polygon(47% 0, 53% 0, 62% 100%, 38% 100%);
    opacity: 0.34;
}

.promised-rails::before,
.promised-rails::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(102, 114, 130, 0.2), rgba(73, 80, 93, 0.7));
}

.promised-rails::before {
    left: 46.5%;
    transform: skewX(14deg);
}

.promised-rails::after {
    right: 46.5%;
    transform: skewX(-14deg);
}

.promised-grass {
    inset: auto 0 0;
    height: 25%;
    background:
        linear-gradient(180deg, transparent 0%, rgba(140, 188, 132, 0.22) 16%, rgba(90, 136, 103, 0.55) 100%);
    clip-path: polygon(0 34%, 8% 22%, 14% 30%, 22% 18%, 30% 28%, 39% 14%, 48% 26%, 57% 15%, 68% 27%, 77% 18%, 86% 31%, 94% 20%, 100% 30%, 100% 100%, 0 100%);
}

.promised-rain,
.promised-snow {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.promised-rain {
    background-image: repeating-linear-gradient(105deg, rgba(196, 224, 255, 0.0) 0 10px, rgba(196, 224, 255, 0.28) 10px 12px, rgba(196, 224, 255, 0.0) 12px 22px);
    animation: promisedRain 0.9s linear infinite;
}

.promised-snow {
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(255,255,255,0.8) 0 1px, transparent 1.8px);
    background-size: 24px 24px, 34px 34px;
    animation: promisedSnow 8s linear infinite;
}

body[data-theme="promised-days"] .navbar,
body[data-theme="promised-days"] .market-trends-bar,
body[data-theme="promised-days"] main,
body[data-theme="promised-days"] .site-footer {
    position: relative;
    z-index: 1;
}

body[data-theme="promised-days"] .modal,
body[data-theme="promised-days"] #user-panel {
    z-index: 1001;
}

body[data-theme="promised-days"][data-scene-phase="night"] {
    background:
        radial-gradient(circle at top, rgba(226, 236, 255, 0.24), transparent 24%),
        linear-gradient(180deg, #08121f 0%, #10203a 38%, #213258 72%, #31446f 100%);
}

body[data-theme="promised-days"][data-scene-phase="night"] .promised-scene-sky {
    background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,0.08), transparent 12%),
        linear-gradient(180deg, rgba(17, 29, 57, 0.72) 0%, rgba(34, 49, 84, 0.36) 100%);
}

body[data-theme="promised-days"][data-scene-phase="night"] .promised-stars {
    opacity: 0.95;
}

body[data-theme="promised-days"][data-scene-phase="night"] .promised-sun {
    opacity: 0;
    transform: translateY(12px);
}

body[data-theme="promised-days"][data-scene-phase="night"] .promised-moon {
    opacity: 1;
    transform: translateY(0);
}

body[data-theme="promised-days"][data-scene-phase="dawn"] .promised-horizon-glow,
body[data-theme="promised-days"][data-scene-phase="dusk"] .promised-horizon-glow {
    background: radial-gradient(circle at center, rgba(255, 188, 142, 0.55) 0%, rgba(255, 214, 173, 0.16) 48%, transparent 78%);
}

body[data-theme="promised-days"][data-scene-phase="dawn"] .promised-sun,
body[data-theme="promised-days"][data-scene-phase="dusk"] .promised-sun {
    transform: translateY(18px) scale(0.82);
}

body[data-theme="promised-days"][data-scene-weather="cloud"] .promised-cloud,
body[data-theme="promised-days"][data-scene-weather="rain"] .promised-cloud,
body[data-theme="promised-days"][data-scene-weather="storm"] .promised-cloud {
    opacity: 0.9;
    background: rgba(236, 241, 246, 0.76);
}

body[data-theme="promised-days"][data-scene-weather="rain"] .promised-rain,
body[data-theme="promised-days"][data-scene-weather="storm"] .promised-rain {
    opacity: 1;
}

body[data-theme="promised-days"][data-scene-weather="snow"] .promised-snow {
    opacity: 0.9;
}

body[data-theme="promised-days"][data-scene-weather="storm"] .promised-scene-sky {
    filter: saturate(0.82) brightness(0.9);
}

@keyframes promisedCloud {
    from { transform: translateX(0); }
    to { transform: translateX(140vw); }
}

@keyframes promisedPlane {
    0% { transform: translateX(0) translateY(0) rotate(1deg); opacity: 0; }
    10% { opacity: 0.4; }
    85% { opacity: 0.4; }
    100% { transform: translateX(145vw) translateY(-34px) rotate(-2deg); opacity: 0; }
}

@keyframes promisedRain {
    from { transform: translateY(-8px); }
    to { transform: translateY(18px); }
}

@keyframes promisedSnow {
    from { transform: translateY(-12px); }
    to { transform: translateY(22px); }
}

@keyframes candyHeartFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(-45deg) scale(var(--heart-scale, 1));
        opacity: 0;
    }

    10% {
        opacity: 0.42;
    }

    50% {
        transform: translate3d(18px, -45vh, 0) rotate(-39deg) scale(var(--heart-scale, 1));
        opacity: 0.5;
    }

    100% {
        transform: translate3d(-14px, -112vh, 0) rotate(-50deg) scale(var(--heart-scale, 1));
        opacity: 0;
    }
}

@keyframes candyGlitterFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 0.72;
    }

    100% {
        transform: translate3d(8px, -92vh, 0) scale(1.25);
        opacity: 0;
    }
}

@keyframes candyHeartColorShift {
    0% {
        filter: hue-rotate(0deg) saturate(1.05) brightness(1);
    }

    25% {
        filter: hue-rotate(38deg) saturate(1.15) brightness(1.08);
    }

    50% {
        filter: hue-rotate(94deg) saturate(1.28) brightness(1.12);
    }

    75% {
        filter: hue-rotate(160deg) saturate(1.12) brightness(1.06);
    }

    100% {
        filter: hue-rotate(360deg) saturate(1.05) brightness(1);
    }
}

body[data-theme="telegram"] {
    --primary-color: #229ed9;
    --text-dark: #102a43;
    --border-gray: #c8e3f5;
    --page-bg: #eaf6fd;
    --surface-bg: #ffffff;
    --surface-soft: #d9f0fc;
    --button-bg: #229ed9;
    --button-text: #ffffff;
}

body[data-theme="forest"] {
    --primary-color: #2f7d32;
    --text-dark: #17351f;
    --border-gray: #bdd7c1;
    --page-bg: #eef7ef;
    --surface-bg: #ffffff;
    --surface-soft: #dcefe0;
    --button-bg: #2f7d32;
    --button-text: #ffffff;
}

body[data-theme="sunset"] {
    --primary-color: #f97316;
    --text-dark: #432818;
    --border-gray: #ffd0a8;
    --page-bg: #fff4e8;
    --surface-bg: #fffaf5;
    --surface-soft: #ffe2c4;
    --button-bg: #c2410c;
    --button-text: #ffffff;
}

body[data-theme="ocean"] {
    --primary-color: #0f766e;
    --text-dark: #0f2f3a;
    --border-gray: #a7d8d2;
    --page-bg: #e9fbf8;
    --surface-bg: #ffffff;
    --surface-soft: #d0f2ec;
    --button-bg: #0f766e;
    --button-text: #ffffff;
}

body[data-dark-text-mode="light"][data-theme="midnight"],
body[data-dark-text-mode="light"][data-theme="graphite"],
body[data-dark-text-mode="light"][data-theme="ember"],
body[data-dark-text-mode="light"][data-theme="nord"],
body[data-dark-text-mode="light"][data-theme="obsidian"],
body[data-dark-text-mode="light"][data-theme="candy-hearts"] {
    --text-dark: #ffffff;
    --text-light: #ffffff;
}

body[data-dark-text-mode="light"][data-theme="midnight"] :where(p, li, label, .user-panel-copy, .theme-picker span, .form-label, .author-badge-handle, .footer-page-link span, .image-search-credit, .source-reference, .article-view-meta, .tracker-copy, .static-page-copy, .message, .card p, .featured-card p, .meta, .article-card-preview figcaption, .article-view-summary, .article-section-text, .article-section-source),
body[data-dark-text-mode="light"][data-theme="graphite"] :where(p, li, label, .user-panel-copy, .theme-picker span, .form-label, .author-badge-handle, .footer-page-link span, .image-search-credit, .source-reference, .article-view-meta, .tracker-copy, .static-page-copy, .message, .card p, .featured-card p, .meta, .article-card-preview figcaption, .article-view-summary, .article-section-text, .article-section-source),
body[data-dark-text-mode="light"][data-theme="ember"] :where(p, li, label, .user-panel-copy, .theme-picker span, .form-label, .author-badge-handle, .footer-page-link span, .image-search-credit, .source-reference, .article-view-meta, .tracker-copy, .static-page-copy, .message, .card p, .featured-card p, .meta, .article-card-preview figcaption, .article-view-summary, .article-section-text, .article-section-source),
body[data-dark-text-mode="light"][data-theme="nord"] :where(p, li, label, .user-panel-copy, .theme-picker span, .form-label, .author-badge-handle, .footer-page-link span, .image-search-credit, .source-reference, .article-view-meta, .tracker-copy, .static-page-copy, .message, .card p, .featured-card p, .meta, .article-card-preview figcaption, .article-view-summary, .article-section-text, .article-section-source),
body[data-dark-text-mode="light"][data-theme="obsidian"] :where(p, li, label, .user-panel-copy, .theme-picker span, .form-label, .author-badge-handle, .footer-page-link span, .image-search-credit, .source-reference, .article-view-meta, .tracker-copy, .static-page-copy, .message, .card p, .featured-card p, .meta, .article-card-preview figcaption, .article-view-summary, .article-section-text, .article-section-source),
body[data-dark-text-mode="light"][data-theme="candy-hearts"] :where(p, li, label, .user-panel-copy, .theme-picker span, .form-label, .author-badge-handle, .footer-page-link span, .image-search-credit, .source-reference, .article-view-meta, .tracker-copy, .static-page-copy, .message, .card p, .featured-card p, .meta, .article-card-preview figcaption, .article-view-summary, .article-section-text, .article-section-source) {
    color: rgba(255, 255, 255, 0.96);
}

.admin-bookmark-btn.active {
    background: var(--primary-color);
    color: var(--button-text);
}

/* Navigation */
.navbar {
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-gray);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(12px, 1.8vw, 22px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: bold;
    text-transform: uppercase;
    flex: 0 0 auto;
    line-height: 1;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 18px);
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    margin: 0;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    font-size: clamp(0.92rem, 1.1vw, 1rem);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active-nav-link {
    color: var(--primary-color);
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: -8px !important;
    border: 1px solid #111111;
    border-radius: 50%;
    background: #ffffff;
    color: #111111 !important;
    line-height: 1;
    font-size: 0.92rem;
    flex: 0 0 auto;
    transform: translateY(-1px);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.notification-bell:hover {
    background: #e8f2ff;
    color: #0f4c81 !important;
    border-color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.16);
}

.alert-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e11d48;
    box-shadow: 0 0 0 2px #ffffff;
}

.market-trend-bar {
    background: #292929;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8f8f8;
    overflow: hidden;
    min-height: 42px;
    position: relative;
    z-index: 90;
}

.market-trend-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1200px;
    min-height: 42px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.market-trend-title {
    flex: 0 0 auto;
    color: #d6d6d6;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.market-trend-list {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    height: 42px;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.market-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: market-marquee 38s linear infinite;
}

.market-trend-list:hover .market-marquee-track {
    animation-play-state: paused;
}

.market-marquee-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding-right: 10px;
}

.market-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: nowrap;
}

.market-chip strong {
    color: #ffffff;
}

.market-price {
    color: #e5e5e5;
    font-variant-numeric: tabular-nums;
}

.market-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.market-up .market-change {
    color: #4ade80;
}

.market-down .market-change {
    color: #fb7185;
}

.market-flat .market-change {
    color: #cbd5e1;
}

.market-arrow {
    display: inline-block;
    animation: market-arrow-blink 1.8s ease-in-out infinite;
}

@keyframes market-arrow-blink {

    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

@keyframes market-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

.nav-link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .nav-container {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }
}

@media (max-width: 940px) {
    .nav-container {
        align-items: flex-start;
    }

    .logo {
        font-size: clamp(1.35rem, 3vw, 1.6rem);
    }

    .nav-links {
        justify-content: flex-start;
    }

    .nav-actions {
        order: 4;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .featured-card {
        max-width: 100%;
        text-align: left;
    }

    .featured-card h2 {
        font-size: clamp(2rem, 5vw, 2.3rem);
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card,
    .leaderboard-card,
    .static-page-card,
    .user-panel {
        padding: 20px;
    }

    .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-card-actions,
    .user-article-actions {
        gap: 8px;
    }

    .btn-inline,
    .engagement-pill {
        padding: 7px 11px;
        font-size: 0.84rem;
    }

    .leaderboard-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .leaderboard-score {
        width: 100%;
    }

    .profile-editor {
        padding: 18px;
    }

    .profile-editor-header {
        align-items: flex-start;
    }

    .profile-upload-row,
    .profile-action-row,
    .user-panel-tools {
        align-items: flex-start;
    }

    .modal-content.large {
        width: min(96vw, 700px);
    }
}


.btn-primary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #b78ea1;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 9px 0 #f2c9d6, 0 14px 22px rgba(183, 142, 161, 0.18);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35), transparent 80%);
    transform: translateX(-120%) skewX(-18deg);
    transition: transform 0.55s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background: #fff4f8;
    border-color: #9f7187;
    color: #1a1a1a;
    transform: translateY(5px);
    box-shadow: 0 4px 0 #f2c9d6, 0 8px 16px rgba(183, 142, 161, 0.16);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before,
.btn-primary:active::before {
    transform: translateX(120%) skewX(-18deg);
}

.btn-primary:active {
    animation: btn-jelly 0.42s ease;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.remove-section-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid var(--border-gray);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active {
    background: var(--surface-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 26, 26, 0.08);
}

/* Layouts */
.divider {
    border: 0;
    border-top: 2px solid var(--text-dark);
    margin: 2rem 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #777;
    font-size: 0.9rem;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-gray);
}

/* Featured Article */
.featured-news {
    margin-top: 2rem;
}

.breaking-strip {
    display: grid;
    gap: 12px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border: 1px solid rgba(230, 57, 70, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 7%, var(--surface-bg)) 0%, var(--surface-soft) 100%);
    max-width: 980px;
}

.breaking-label {
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.breaking-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breaking-chip {
    border: 1px solid rgba(230, 57, 70, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.breaking-chip:hover,
.breaking-chip:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.08);
}

.featured-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.featured-card h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.featured-card .category {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.card {
    background: var(--surface-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-shell {
    display: grid;
    gap: 12px;
}

.compact-card .card-shell {
    grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.9fr);
    align-items: start;
}

.compact-card .card-main-copy {
    min-width: 0;
}

.compact-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.article-card-preview {
    display: grid;
    gap: 6px;
    margin: 12px 0 14px;
}

.compact-preview {
    margin: 0;
}

.article-card-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-gray);
    background: var(--surface-soft);
}

.article-card-preview figcaption {
    color: #777;
    font-size: 0.78rem;
}

.featured-preview {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-text-preview {
    white-space: pre-line;
}

.card-read-more {
    margin: -4px 0 14px;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #888;
}

.featured-card p {
    color: #555;
}

.featured-card,
.card {
    overflow: hidden;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    overflow-y: auto;
}

/* Modal Content Box */
.modal-content {
    background-color: var(--surface-bg);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.modal-content.large {
    max-width: 700px;
    width: min(92vw, 700px);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: var(--text-dark);
}

/* Forms & Inputs */
input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
}

.full-width {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.animated-file-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 125px;
    min-height: 46px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #a8d8f9;
    color: #0f4c81;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    border-radius: 9px;
}

.animated-file-picker input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.file-picker-text,
.file-picker-icon {
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

.file-picker-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0;
    transform: translateY(44px);
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 47H18C11.925 47 7 42.075 7 36C7 30.28 11.365 25.579 16.944 25.047C19.035 17.5 25.959 12 34 12C42.609 12 49.793 18.13 51.426 26.26C56.285 27.503 60 31.925 60 37C60 42.523 55.523 47 50 47H45' stroke='%230f4c81' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M32 47V27M32 27L23 36M32 27L41 36' stroke='%230f4c81' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.animated-file-picker:hover,
.animated-file-picker:focus-within {
    background: #8fd0ff;
    color: #083b67;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 158, 217, 0.22);
}

.animated-file-picker:hover .file-picker-text,
.animated-file-picker:focus-within .file-picker-text {
    opacity: 0;
    transform: translateY(42px);
}

.animated-file-picker:hover .file-picker-icon,
.animated-file-picker:focus-within .file-picker-icon {
    opacity: 1;
    transform: translateY(0);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #555;
}

/* Tabs for Auth */
.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-gray);
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #888;
}

.tab.active {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}

/* System Messages */
.message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #fde8ea;
    color: #a11d2b;
}

#category-fit-warning {
    display: grid;
    gap: 10px;
    align-items: start;
}

#category-fit-warning .btn-secondary {
    width: fit-content;
}

.message.loading,
.image-upload-status.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 12px;
    padding: 12px 14px;
    width: fit-content;
}

.message.loading {
    width: 100%;
}

.loader {
    width: 28px;
    height: 28px;
    border: 4px dotted currentColor;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
    flex: 0 0 auto;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.remember-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #555;
    font-size: 0.95rem;
}

.remember-toggle input {
    width: auto;
    margin: 0;
}

.ai-draft-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
}

.ai-toggle {
    margin-bottom: 0;
    font-weight: 700;
}

.ai-draft-controls {
    display: grid;
    gap: 12px;
}

.ai-draft-note {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

.image-search-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: var(--surface-bg);
}

.image-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.image-search-header h3 {
    font-size: 0.96rem;
}

.image-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.image-search-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
}

.image-search-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-gray);
    background: var(--surface-soft);
}

.image-search-meta {
    display: grid;
    gap: 6px;
}

.image-search-credit {
    font-size: 0.76rem;
    color: #666;
    line-height: 1.35;
}

.image-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.image-section-header h3 {
    font-size: 1rem;
}

.image-sections-container {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.image-section-block {
    padding: 16px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    background: #fcfcfc;
}

.image-section-grid {
    display: grid;
    grid-template-columns: 1.3fr auto 1fr auto;
    gap: 12px;
    align-items: start;
}

.section-image-url {
    margin-bottom: 10px;
}

.section-source-url {
    margin-bottom: 10px;
}

.image-upload-status {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.remove-section-btn {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.section-image-text {
    margin-bottom: 0;
}

.user-panel {
    padding: 28px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.05);
}

.user-desk-card {
    max-width: 960px;
    max-height: 85vh;
    overflow-y: auto;
}

.page-panel {
    margin-top: 40px;
}

.user-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user-panel-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-panel-copy {
    color: #555;
    margin-top: 6px;
}

.profile-editor {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    background: var(--surface-bg);
}

.profile-editor-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-shell {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--border-gray);
    flex-shrink: 0;
}

.profile-avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-form {
    display: grid;
    gap: 12px;
}

.profile-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-danger-outline {
    border-color: #d66c6c;
    color: #8f1f1f;
    box-shadow: 0 6px 0 #f1c2c2, 0 10px 18px rgba(214, 108, 108, 0.16);
}

.btn-danger-outline:hover,
.btn-danger-outline:focus-visible {
    background: #ffe9e9;
    color: #721616;
}

.profile-field-label {
    display: grid;
    gap: 6px;
}

.profile-field-label input,
.profile-field-label textarea {
    margin-bottom: 0;
}

.profile-upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-upload-row .form-label,
.profile-upload-row .animated-file-picker {
    margin-bottom: 0;
}

.theme-picker {
    display: grid;
    gap: 6px;
    min-width: 160px;
    color: inherit;
}

.theme-picker span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #777;
}

.theme-picker select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-gray);
    background: var(--surface-bg);
    color: inherit;
}

.theme-toggle {
    min-width: 220px;
}

.theme-toggle-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    background: var(--surface-bg);
    color: inherit;
    font-size: 0.92rem;
}

.theme-toggle-control input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex: 0 0 auto;
}

.theme-toggle-control input:disabled,
.theme-toggle-control input:disabled + span {
    opacity: 0.56;
}

.user-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.user-article-card {
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: var(--surface-bg);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.user-article-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.user-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #666;
    font-size: 0.88rem;
}

.user-article-actions,
.article-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-inline {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #b78ea1;
    border-radius: 12px;
    padding: 8px 13px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 6px 0 #f2c9d6, 0 10px 18px rgba(183, 142, 161, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-inline:hover,
.btn-inline:focus-visible,
.btn-inline:active {
    background: #fff4f8;
    border-color: #9f7187;
    color: #1a1a1a;
    transform: translateY(3px);
    box-shadow: 0 3px 0 #f2c9d6, 0 7px 14px rgba(183, 142, 161, 0.14);
}

.btn-inline.active {
    background: #fff1f2;
    border-color: var(--primary-color);
    color: var(--primary-color);
    animation: btn-pulse 0.5s ease;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.social-share-btn:hover,
.social-share-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 26, 26, 0.2);
}

.engagement-pill {
    display: inline-flex;
    align-items: center;
    border: 2px solid #b78ea1;
    border-radius: 12px;
    padding: 8px 13px;
    color: #1a1a1a;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 6px 0 #f2c9d6, 0 10px 18px rgba(183, 142, 161, 0.14);
}

.empty-state {
    color: #666;
    padding: 12px 0;
}

.share-field {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 16px;
    margin-bottom: 50px;
}

.share-field label {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.share-field-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-turn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: 2px solid #b78ea1;
    border-radius: 14px;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 0 #f2c9d6, 0 10px 18px rgba(183, 142, 161, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.share-turn-btn:hover,
.share-turn-btn:focus-visible,
.share-turn-btn:active {
    background: #fff4f8;
    transform: translateY(3px);
    box-shadow: 0 3px 0 #f2c9d6, 0 7px 14px rgba(183, 142, 161, 0.14);
}

.admin-panel {
    margin-top: 56px;
    margin-bottom: 30px;
    padding: 28px;
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
    border: 1px solid #f1c9cd;
    border-top: 5px solid var(--primary-color);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.06);
}

.admin-panel-header {
    margin-bottom: 22px;
}

.admin-eyebrow {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-panel-copy {
    max-width: 760px;
    color: #555;
}

.admin-table-shell {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    background: var(--surface-bg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-bg);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border: 1px solid var(--border-gray);
    text-align: left;
}

.admin-table th {
    background-color: #f8f8f8;
    color: #1a1a1a;
    font-weight: 800;
}

.btn-delete {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #cc0000;
}

.admin-control-shell {
    display: grid;
    gap: 24px;
}

.admin-editor-shell {
    display: grid;
    gap: 20px;
}

.admin-control-sections {
    display: grid;
    gap: 24px;
}

.admin-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.admin-control-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-control-section,
.admin-control-side {
    margin: 0;
}

.admin-control-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-search-picker {
    min-width: min(320px, 100%);
}

.admin-search-picker input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-gray);
    background: var(--surface-bg);
    color: inherit;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-control-side {
    display: grid;
    gap: 20px;
}

.admin-blocked-list-shell,
.admin-block-stack {
    display: grid;
    gap: 12px;
}

.admin-blocked-list {
    display: grid;
    gap: 12px;
}

.admin-blocked-card {
    display: grid;
    gap: 10px;
}

.admin-blocked-card-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.admin-unblock-btn,
.admin-block-btn {
    white-space: nowrap;
}

.admin-modal-card {
    max-width: 460px;
    padding: 36px 32px 30px;
    border: 1px solid #f1d6d9;
    background:
        radial-gradient(circle at top right, rgba(230, 57, 70, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.admin-modal-title {
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.admin-modal-copy {
    color: #555;
    margin-bottom: 22px;
}

.admin-login-form input {
    margin-bottom: 18px;
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.92);
}

.admin-submit-btn {
    margin-top: 4px;
    background: linear-gradient(135deg, #1a1a1a 0%, #e63946 100%);
}

.admin-modal-card .message {
    margin-top: 16px;
}

.admin-modal-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
}

.article-modal-card {
    max-width: 820px;
}

.article-view-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-view-title {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 14px;
}

.article-view-summary {
    font-size: 1.05rem;
    color: #686e6f;
    margin-bottom: 20px;
}

.article-view-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 26px;
}

.article-view-body {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.article-view-body > * {
    min-width: 0;
    max-width: 100%;
}

.article-section-source {
    display: inline-flex;
    width: fit-content;
    margin-top: -6px;
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.article-section-source:hover,
.article-section-source:focus-visible {
    color: var(--text-dark);
}

.article-page-shell {
    margin-top: 40px;
    margin-bottom: 40px;
    overflow-x: clip;
}

.article-page-body {
    width: min(100%, 860px);
    max-width: 860px;
    margin: 0 auto;
    padding: 28px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
    overflow-x: hidden;
}

.leaderboard-page {
    display: grid;
    gap: 22px;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

.live-trackers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tracker-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 20%, transparent), transparent 38%),
        linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    box-shadow: 0 12px 30px rgba(26, 26, 26, 0.05);
}

.tracker-card span {
    display: block;
    color: #666;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tracker-card strong {
    display: block;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

.leaderboard-card {
    padding: 24px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.05);
}

.leaderboard-card h3 {
    margin-bottom: 16px;
}

.leaderboard-list {
    display: grid;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-gray);
    background: var(--surface-bg);
}

.leaderboard-creator {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.creator-handle {
    color: #777;
    font-size: 0.78rem;
    line-height: 1.1;
    word-break: break-word;
}

.creator-podium {
    border-color: rgba(212, 175, 55, 0.55);
    background:
        radial-gradient(circle at 16px 18px, rgba(255, 255, 255, 0.7), transparent 26px),
        linear-gradient(135deg, var(--surface-bg) 0%, rgba(255, 248, 219, 0.78) 100%);
}

.creator-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 50%;
    font-size: 1.2rem;
    vertical-align: middle;
    box-shadow: 0 8px 18px rgba(26, 26, 26, 0.12);
}

.creator-medal-inline {
    width: 24px;
    height: 24px;
    margin: 0 0 0 5px;
    font-size: 0.9rem;
    transform: translateY(-1px);
}

.creator-medal-gold {
    background: linear-gradient(135deg, #fff8cf, #f4c430);
    border: 1px solid #d4af37;
}

.creator-medal-silver {
    background: linear-gradient(135deg, #ffffff, #c0c0c0);
    border: 1px solid #a8a8a8;
}

.creator-medal-bronze {
    background: linear-gradient(135deg, #ffe8cf, #cd7f32);
    border: 1px solid #a76428;
}

.leaderboard-item strong {
    display: block;
    margin-bottom: 4px;
}

.leaderboard-score {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.author-badge {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    min-width: 0;
}

.author-badge-copy {
    display: grid;
    gap: 3px;
    line-height: 1.15;
    min-width: 0;
}

.author-badge-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.author-badge-name {
    font-weight: 600;
    word-break: break-word;
}

.author-badge-handle {
    color: #777;
    font-size: 0.77rem;
    line-height: 1.15;
    word-break: break-word;
}

.author-social-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.author-badge-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-gray);
    background: var(--surface-soft);
    flex-shrink: 0;
}

.article-view-meta .author-badge,
.meta .author-badge {
    color: inherit;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 7px 16px rgba(26, 26, 26, 0.13);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26, 26, 26, 0.18);
}

.social-icon-x {
    background: #111111;
}

.social-icon-reddit {
    background: #ff4500;
}

.hall-fame-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: -2px 0 6px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.hall-fame-tag-link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.hall-fame-tag-link:hover,
.hall-fame-tag-link:focus-visible {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hall-fame-admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.expandable-copy {
    display: grid;
    gap: 8px;
}

.read-more-btn {
    width: fit-content;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    background: var(--surface-bg);
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 800;
    padding: 7px 12px;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
    background: var(--surface-soft);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.letter-page {
    display: grid;
    gap: 22px;
}

.editor-page {
    display: grid;
    gap: 22px;
}

.editor-form {
    max-width: 860px;
}

.letter-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.letter-main-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.letter-left-column {
    display: grid;
    gap: 22px;
}

.member-thoughts-feed {
    display: grid;
    gap: 16px;
}

.member-thoughts-panel {
    width: min(39%, 340px);
    justify-self: start;
}

.thoughts-list {
    width: min(83%, 100%);
}

.member-thoughts-panel,
.hall-fame-side {
    padding: 22px;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    box-shadow: 0 14px 34px rgba(26, 26, 26, 0.05);
}

.thought-box {
    min-height: 180px;
    resize: vertical;
}

.letter-section-heading {
    margin-bottom: 16px;
}

.thought-toggle-btn {
    width: fit-content;
    border: 0;
    border-left: 5px solid #111111;
    border-top: 5px solid #111111;
    border-radius: 2px 18px 18px 18px;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 13px 20px;
    box-shadow: 10px 10px 0 color-mix(in srgb, var(--primary-color) 80%, #111111);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.member-thoughts-panel .thought-toggle-btn,
.hall-fame-side > .thought-toggle-btn {
    padding: 14px 22px;
    font-size: 0.95rem;
}

.thought-toggle-btn:hover,
.thought-toggle-btn:focus-visible,
.thought-toggle-btn:active {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    transform: translate(4px, 4px);
    box-shadow: 4px 4px 0 #111111;
}

.letter-lower-sections {
    display: none;
    gap: 14px;
}

.hall-fame-side {
    position: sticky;
    top: 118px;
    width: 100%;
    margin-left: 0;
    max-width: 100%;
    padding: 24px;
}

.community-honor-shell {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border-gray);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    box-shadow: 0 14px 34px rgba(26, 26, 26, 0.05);
}

.community-honor-list {
    display: grid;
    gap: 16px;
}

.community-honor-shell .hall-fame-card {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    padding: 20px;
}

.community-honor-shell .hall-fame-image {
    aspect-ratio: 16 / 11;
}

.letter-collapse {
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    background: var(--surface-bg);
    padding: 16px 18px;
}

.letter-collapse summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text-dark);
}

.letter-collapse[open] summary {
    color: var(--primary-color);
    margin-bottom: 14px;
}

.site-letter-tabs {
    margin-bottom: 0;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.letter-tabs-left,
.letter-tabs-right {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.hall-fame-tab {
    color: var(--primary-color);
}

.letter-panel {
    display: grid;
    gap: 18px;
}

.site-updates-list {
    display: grid;
    gap: 16px;
}

.site-update-card {
    padding: 22px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    box-shadow: 0 12px 32px rgba(26, 26, 26, 0.05);
    min-width: 0;
}

.site-update-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border-gray);
    margin: 10px 0 4px;
    background: var(--surface-bg);
}

.admin-update-actions,
.admin-update-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.suggestion-form {
    padding: 22px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    background: var(--surface-bg);
}

.suggestion-card {
    border-left: 4px solid var(--primary-color);
}

.suggestion-card h3,
.site-update-card h3,
.leaderboard-item strong,
.hall-fame-name,
.hall-fame-copy,
.copy-preview,
.copy-full {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.source-reference {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--surface-bg);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.source-reference:hover,
.source-reference:focus-visible {
    background: var(--surface-soft);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.hall-fame-card {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hall-fame-image-btn {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.hall-fame-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    background: var(--surface-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hall-fame-image-btn:hover .hall-fame-image,
.hall-fame-image-btn:focus-visible .hall-fame-image {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(26, 26, 26, 0.16);
}

.hall-fame-name {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.hall-fame-copy {
    white-space: pre-line;
    line-height: 1.75;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.hall-fame-card > div {
    min-width: 0;
}

.hall-fame-tagline {
    min-width: 0;
}

.copy-full,
.copy-preview {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.hall-fame-side .hall-fame-list {
    gap: 18px;
}

.hall-fame-side .hall-fame-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
}

.hall-fame-side .hall-fame-image-btn {
    max-width: 100%;
}

.hall-fame-side .hall-fame-image {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

.hall-fame-side .hall-fame-tagline {
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.hall-fame-side .hall-fame-tag-link {
    font-size: 0.8rem;
    line-height: 1.35;
}

.hall-fame-side h3 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.hall-fame-side .hall-fame-name {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.hall-fame-side .hall-fame-copy {
    font-size: 1rem;
    line-height: 1.78;
}

.hall-fame-side .read-more-btn {
    margin-top: 4px;
}

.hall-fame-side .user-article-meta {
    margin-top: 6px;
}

.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: block;
    padding: 72px 16px 24px;
    background: rgba(0, 0, 0, 0.82);
    overflow: auto;
    overscroll-behavior: contain;
}

.image-viewer-modal img {
    display: block;
    width: min(100%, 1100px);
    height: auto;
    max-height: none;
    margin: 0 auto;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.image-viewer-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .image-viewer-modal {
        padding: 64px 10px 20px;
    }

    .image-viewer-modal img {
        width: 100%;
        border-radius: 12px;
    }
}

.profile-form .btn-primary,
#site-update-form .btn-primary,
#suggestion-form .btn-primary,
#hall-fame-form .btn-primary {
    width: fit-content;
    min-width: 160px;
    padding: 10px 18px;
    justify-self: start;
}


.article-section-text {
    color: #686e6f;
    white-space: pre-line;
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.article-inline-image {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.article-inline-image img {
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.article-inline-image figcaption {
    font-size: 0.88rem;
    color: #666;
}

/* Footer Styles */
.site-footer {
    background-color: var(--surface-bg);
    color: var(--text-dark);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-gray);
}

.footer-info-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto 22px;
    text-align: left;
}

.footer-info-panels details {
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    background: var(--surface-soft);
    padding: 14px 16px;
}

.footer-info-panels summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--primary-color);
}

.footer-info-panels p {
    margin-top: 10px;
    color: #666;
    font-size: 0.92rem;
}

.footer-managed-panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto 22px;
    text-align: center;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    padding: 18px 8px;
}

.footer-page-link {
    display: grid;
    gap: 5px;
    padding: 0 26px;
    margin: 8px 0;
    position: relative;
    text-decoration: none;
    text-align: center;
    color: inherit;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-page-link::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 32px;
    background: var(--border-gray);
    transform: translateY(-50%);
}

.footer-page-link:last-child::after {
    display: none;
}

.footer-page-link strong {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.footer-page-link span {
    color: #7d7d7d;
    font-size: 0.8rem;
    line-height: 1.45;
}

.footer-page-link:hover,
.footer-page-link:focus-visible {
    transform: translateY(-1px);
    color: var(--primary-color);
}

.footer-page-link:hover strong,
.footer-page-link:focus-visible strong {
    color: var(--primary-color);
}

.footer-subscribe-shell {
    max-width: 980px;
    margin: 0 auto 24px;
    padding: 20px 22px;
    border: 1px solid var(--border-gray);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: center;
    text-align: left;
}

.footer-subscribe-copy {
    display: grid;
    gap: 8px;
}

.footer-subscribe-copy h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.footer-subscribe-copy p:last-child {
    color: #666;
    line-height: 1.65;
}

.footer-subscribe-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.footer-subscribe-form input {
    margin-bottom: 0;
}

.footer-subscribe-shell .message {
    grid-column: 1 / -1;
    margin-top: 2px;
}

.letter-community-link {
    flex: 0 0 min(320px, 100%);
    position: sticky;
    top: 110px;
    align-self: flex-start;
    margin-left: auto;
}

.static-page-shell {
    display: grid;
    gap: 22px;
}

.static-page-card {
    padding: 28px;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-soft) 100%);
    box-shadow: 0 16px 38px rgba(26, 26, 26, 0.06);
}

.static-page-body {
    white-space: pre-line;
    line-height: 1.9;
    font-size: 1.02rem;
    color: var(--text-dark);
}

.admin-link {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.admin-link:hover {
    color: var(--primary-color);
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 35%, transparent);
    }

    100% {
        box-shadow: 0 0 0 12px transparent;
    }
}

@keyframes btn-jelly {

    0%,
    100% {
        transform: translateY(-2px) scale(1.02, 1.02);
    }

    35% {
        transform: translateY(-2px) scale(1.08, 0.92);
    }

    65% {
        transform: translateY(-2px) scale(0.96, 1.06);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .container {
        width: min(100% - 22px, 1200px);
    }

    .logo-link {
        gap: 6px;
        font-size: 0.96em;
    }


    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links a {
        margin: 0;
    }

    .market-trend-inner {
        gap: 10px;
        padding: 0 14px;
    }

    .market-trend-title {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .market-chip {
        font-size: 0.76rem;
        padding: 5px 9px;
    }

    .featured-news {
        margin-top: 1.2rem;
    }

    .breaking-strip {
        padding: 12px 14px;
        gap: 10px;
        margin-bottom: 14px;
    }

    .breaking-chip {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .featured-card h2 {
        font-size: 2rem;
    }

    .featured-card,
    .card,
    .leaderboard-card,
    .static-page-card,
    .profile-editor,
    .user-article-card,
    .hall-fame-side .hall-fame-card,
    .community-honor-shell,
    .community-honor-shell .hall-fame-card {
        padding: 16px;
    }

    .card h3,
    .user-article-card h3,
    .leaderboard-card h3 {
        font-size: 1.02rem;
    }

    .card p,
    .featured-card p,
    .article-section-text,
    .static-page-body,
    .hall-fame-side .hall-fame-copy,
    .community-honor-shell .hall-fame-copy {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .user-panel,
    .admin-panel {
        padding: 22px 16px;
    }

    .user-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

.letter-community-link {
        position: static;
        width: 100%;
        flex: none;
        margin-left: 0;
    }

    .user-panel-tools {
        width: 100%;
    }

    .profile-editor-header,
    .live-trackers,
    .hall-fame-card,
    .community-honor-shell .hall-fame-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hall-fame-side,
    .community-honor-shell {
        position: static;
        width: 100%;
        margin-left: 0;
    }

    .member-thoughts-panel,
    .thoughts-list {
        width: 100%;
    }

    .leaderboard-item {
        padding: 12px 14px;
    }

    .leaderboard-creator,
    .author-badge {
        width: 100%;
    }

    .author-badge {
        grid-template-columns: auto 1fr;
        column-gap: 8px;
    }

    .author-badge-avatar {
        width: 36px;
        height: 36px;
    }

    .creator-medal {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .share-field {
        margin-bottom: 26px;
    }

    .modal {
        padding: 14px 0;
    }

    .modal-content {
        width: min(94vw, 400px);
        padding: 22px 16px;
        max-height: calc(100vh - 28px);
    }

    .modal-content.large {
        width: min(94vw, 700px);
    }

    .close-btn {
        top: 10px;
        right: 14px;
    }

    .admin-modal-card {
        padding: 32px 22px 24px;
    }

    .admin-table th,
    .admin-table td {
        min-width: 140px;
    }

    .admin-control-grid,
    .admin-control-secondary {
        grid-template-columns: 1fr;
    }

    .admin-control-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search-picker {
        min-width: 100%;
    }

    .image-section-header,
    .image-section-grid {
        grid-template-columns: 1fr;
    }

    .article-view-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 540px) {
    .promised-sun,
    .promised-moon {
        width: 76px;
        height: 76px;
        top: 82px;
        right: 8%;
    }

    .promised-cloud {
        width: 170px;
        height: 54px;
    }

    .promised-cloud-two {
        width: 220px;
        height: 62px;
    }

    .promised-cloud-three {
        width: 150px;
        height: 48px;
    }

    .container {
        padding: 0 12px;
    }

    .logo {
        width: 100%;
    }

    .logo-link {
        white-space: normal;
        line-height: 1.05;
    }

    .nav-links {
        gap: 8px 14px;
    }

    .nav-links a {
        font-size: 0.92rem;
    }

    .notification-bell {
        width: 28px;
        height: 28px;
        margin-left: 0 !important;
    }

    .btn-primary:not(.full-width),
    .btn-secondary:not(.full-width),
    .btn-inline,
    .engagement-pill {
        width: auto;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.76rem;
        line-height: 1.1;
        border-radius: 10px;
    }

    .social-share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .read-more-btn,
    .source-reference,
    .thought-toggle-btn,
    .share-turn-btn,
    .btn-delete {
        width: auto;
        min-width: 0;
        padding: 7px 10px;
        line-height: 1.1;
    }

    .nav-actions {
        gap: 10px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .nav-actions .btn-primary,
    .nav-actions .btn-secondary {
        width: auto;
        min-width: 0;
        padding: 8px 12px;
        font-size: 0.84rem;
        line-height: 1.1;
        border-radius: 10px;
        letter-spacing: 0.03em;
    }

    .nav-actions .nav-link-btn {
        display: inline-flex;
    }

    .leaderboard-grid,
    .letter-main-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .letter-main-grid {
        width: calc(100% + 10px);
        margin-left: -5px;
        margin-right: -5px;
    }

    .leaderboard-card,
    .member-thoughts-panel,
    .hall-fame-side,
    .community-honor-shell {
        min-width: 0;
    }

    .leaderboard-card h3,
    .letter-section-heading h3 {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .member-thoughts-panel,
    .thoughts-list,
    .hall-fame-side,
    .community-honor-shell {
        width: 100%;
        margin-left: 0;
        justify-self: stretch;
    }

    .member-thoughts-feed,
    .thoughts-list,
    #suggestions-list,
    #suggestions-list .site-update-card {
        width: 118%;
        justify-self: stretch;
    }

    .member-thoughts-panel,
    .hall-fame-side,
    .hall-fame-side .hall-fame-card,
    .community-honor-shell,
    .community-honor-shell .hall-fame-card {
        padding: 14px;
    }

    .thought-toggle-btn {
        padding: 8px 10px;
        font-size: 0.74rem;
        box-shadow: 6px 6px 0 color-mix(in srgb, var(--primary-color) 80%, #111111);
    }

    .member-thoughts-panel .thought-toggle-btn,
    .hall-fame-side > .thought-toggle-btn,
    .community-honor-shell > .thought-toggle-btn {
        padding: 8px 10px;
        font-size: 0.74rem;
    }

    .leaderboard-list,
    .hall-fame-list,
    .thoughts-list {
        gap: 10px;
    }

    .featured-card h2 {
        font-size: 1.68rem;
    }

    .compact-card .card-shell {
        grid-template-columns: minmax(0, 1.1fr) 86px;
        gap: 10px;
    }

    .image-search-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-search-results {
        grid-template-columns: 1fr;
    }

    .compact-card h3 {
        font-size: 0.96rem;
    }

    .compact-card .article-card-preview img {
        border-radius: 10px;
    }

    .featured-card .category,
    .tracker-card span {
        font-size: 0.72rem;
    }

    .article-card-preview figcaption,
    .article-inline-image figcaption,
    .creator-handle,
    .author-badge-handle {
        font-size: 0.68rem;
    }

    .profile-editor-header {
        flex-direction: column;
    }

    .profile-avatar-shell {
        width: 78px;
        height: 78px;
    }

    .profile-upload-row,
    .profile-action-row,
    .user-panel-tools,
    .article-card-actions,
    .user-article-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .share-field {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .share-turn-btn {
        width: 30px;
        height: 28px;
    }

    .admin-row-actions,
    .admin-blocked-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .tracker-card {
        padding: 16px;
    }

    .tracker-card strong {
        font-size: clamp(1.45rem, 9vw, 2.1rem);
    }

    .leaderboard-item,
    .user-article-card,
    .hall-fame-side .hall-fame-card {
        border-radius: 16px;
    }

    .leaderboard-item {
        padding: 10px;
        gap: 8px;
        align-items: flex-start;
    }

    .leaderboard-card {
        padding: 12px;
    }

    .leaderboard-card h3 {
        margin-bottom: 10px;
    }

    .leaderboard-creator {
        gap: 6px;
        align-items: flex-start;
    }

    .leaderboard-item strong,
    .author-badge-name {
        font-size: 0.84rem;
        line-height: 1.2;
    }

    .leaderboard-score {
        font-size: 0.8rem;
    }

    .author-badge {
        column-gap: 6px;
    }

    .author-badge-avatar {
        width: 28px;
        height: 28px;
    }

    .creator-medal {
        width: 20px;
        height: 20px;
        margin-right: 4px;
        font-size: 0.72rem;
    }

    .creator-medal-inline {
        width: 16px;
        height: 16px;
        font-size: 0.62rem;
        margin-left: 3px;
    }

    #top-articles-list .leaderboard-item > div {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    #top-articles-list .leaderboard-item strong {
        font-size: 0.66rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    #top-articles-list .leaderboard-item span:not(.leaderboard-score) {
        display: block;
        font-size: 0.54rem;
        line-height: 1.2;
        color: #777;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    #top-articles-list .leaderboard-score {
        font-size: 0.72rem;
        line-height: 1;
        padding-top: 2px;
    }

    #top-creators-list .leaderboard-item {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    #top-creators-list .leaderboard-creator {
        width: 100%;
        gap: 5px;
    }

    #top-creators-list .author-badge {
        grid-template-columns: 26px minmax(0, 1fr);
        column-gap: 6px;
        align-items: start;
    }

    #top-creators-list .author-badge-avatar {
        width: 26px;
        height: 26px;
    }

    #top-creators-list .author-badge-name-row {
        gap: 4px;
        align-items: flex-start;
    }

    #top-creators-list .author-badge-name {
        font-size: 0.66rem;
        line-height: 1.15;
    }

    #top-creators-list .author-badge-handle {
        display: block;
        font-size: 0.52rem;
        line-height: 1.1;
        margin-top: 1px;
    }

    #top-creators-list .leaderboard-score {
        align-self: flex-start;
        font-size: 0.72rem;
        line-height: 1;
    }

    #top-creators-list .creator-medal {
        width: 16px;
        height: 16px;
        margin-right: 2px;
        font-size: 0.58rem;
        flex-shrink: 0;
    }

    #top-creators-list .creator-medal-inline {
        width: 13px;
        height: 13px;
        font-size: 0.5rem;
        margin-left: 2px;
    }

    .hall-fame-side .hall-fame-image {
        aspect-ratio: 16 / 11;
        border-radius: 12px;
    }

    .community-honor-shell .hall-fame-card {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 10px;
    }

    .community-honor-shell .hall-fame-image {
        aspect-ratio: 16 / 11;
        border-radius: 12px;
    }

    .community-honor-shell h3 {
        font-size: 0.86rem;
        line-height: 1.18;
        margin-bottom: 4px;
    }

    .community-honor-shell .hall-fame-name {
        font-size: 0.76rem;
        margin-bottom: 4px;
    }

    .community-honor-shell .hall-fame-copy,
    .community-honor-shell .copy-preview,
    .community-honor-shell .copy-full {
        font-size: 0.66rem;
        line-height: 1.28;
    }

    .community-honor-shell .article-view-category,
    .community-honor-shell .hall-fame-tagline,
    .community-honor-shell .hall-fame-tag-link,
    .community-honor-shell .user-article-meta,
    .community-honor-shell .source-reference,
    .community-honor-shell .read-more-btn {
        font-size: 0.6rem;
        line-height: 1.15;
    }

    .hall-fame-side h3 {
        font-size: 0.96rem;
        line-height: 1.22;
        margin-bottom: 6px;
    }

    .hall-fame-side .hall-fame-name {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .hall-fame-side .hall-fame-copy,
    .suggestion-card .hall-fame-copy,
    .suggestion-card .copy-preview,
    .suggestion-card .copy-full {
        font-size: 0.71rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .suggestion-card .article-view-category,
    .hall-fame-side .article-view-category,
    .hall-fame-side .hall-fame-tagline {
        font-size: 0.62rem;
        line-height: 1.25;
    }

    .hall-fame-side .hall-fame-tagline,
    .hall-fame-side .hall-fame-tag-link,
    .source-reference,
    .read-more-btn {
        font-size: 0.68rem;
    }

    .site-update-card,
    .suggestion-form {
        padding: 14px;
    }

    .site-update-card h3,
    .suggestion-card h3,
    .hall-fame-side h3 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .site-footer {
        padding: 24px 14px;
    }

    .footer-info-panels,
    .footer-managed-panels {
        gap: 10px;
    }

    .footer-managed-panels {
        justify-content: flex-start;
        padding: 14px 0;
    }

    .footer-page-link {
        width: 100%;
        padding: 10px 0;
    }

    .footer-page-link::after {
        display: none;
    }

    .footer-subscribe-shell {
        grid-template-columns: 1fr;
        padding: 18px 16px;
    }

    .footer-subscribe-form {
        grid-template-columns: 1fr;
    }

    .static-page-card {
        padding: 16px;
    }

    .install-cloud-prompt {
        width: min(76vw, 220px);
        bottom: 12px;
    }

    .install-cloud-shape {
        min-height: 0;
    }

    .candy-heart {
        width: 22px;
        opacity: 0.3;
    }

    .candy-glitter {
        width: 5px;
        height: 5px;
    }
}
