        :root {
            --bg: #0f1113;
            --nav: #1f2937;
            --surface: #1f2937;
            --surface-2: #111827;
            --border: #374151;
            --text: #e5e7eb;
            --muted: #9ca3af;
            --accent: #4a7ab5;
            --accent-soft: #5b8bc4;
            --accent-deep: #3d6a9a;
            --accent-picks: #a855f7;
        }

        * {
            -webkit-tap-highlight-color: transparent;
        }

        .group\/dl:hover {
            transform: translateY(-2px);
        }

        body {
            background-color: var(--bg);
            color: var(--text);
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
        }

        /* Admin (and Ops error log): allow copying IPs, filenames, messages */
        body.admin-logged-in,
        body.admin-logged-in * {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }
        body.admin-logged-in button,
        body.admin-logged-in .select-none,
        body.admin-logged-in .select-none * {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .site-main {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .site-footer {
            margin-top: auto;
            flex-shrink: 0;
            width: 100%;
        }

        /* WordPress-style admin chrome when logged in */
        .admin-topbar {
            position: sticky;
            top: 0;
            z-index: 70;
            height: 2.35rem;
            background: #0b0e12;
            border-bottom: 1px solid rgba(74, 122, 181, 0.35);
            color: #c5cdd8;
            font-size: 0.75rem;
        }

        .admin-topbar-inner {
            max-width: 80rem;
            margin: 0 auto;
            padding: 0 1rem;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .admin-topbar-inner::-webkit-scrollbar {
            display: none;
        }

        .admin-topbar-left,
        .admin-topbar-right {
            display: flex;
            align-items: center;
            gap: 0.2rem;
            min-width: 0;
            flex-shrink: 0;
        }

        .admin-topbar-brand {
            font-weight: 800;
            color: #fff;
            margin-right: 0.45rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 9rem;
        }

        .admin-topbar-link {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.25rem 0.55rem;
            border-radius: 0.375rem;
            color: #b8c0cc;
            white-space: nowrap;
            transition: background 0.15s ease, color 0.15s ease;
            background: transparent;
            border: 0;
            cursor: pointer;
            font: inherit;
        }

        .admin-topbar-link:hover {
            background: rgba(74, 122, 181, 0.18);
            color: #fff;
        }

        .admin-topbar-edit {
            color: var(--accent-soft);
        }

        .admin-topbar-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.15rem;
            height: 1.15rem;
            padding: 0 0.3rem;
            border-radius: 999px;
            background: rgba(74, 122, 181, 0.28);
            border: 1px solid rgba(91, 139, 196, 0.55);
            color: #c5daf0;
            font-size: 0.65rem;
            font-weight: 800;
            line-height: 1;
        }

        .admin-panel-chip {
            display: inline-flex;
            align-items: center;
            margin-left: 0.35rem;
            padding: 0.15rem 0.45rem;
            border-radius: 0.3rem;
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #dbeafe;
            background: rgba(74, 122, 181, 0.28);
            border: 1px solid rgba(91, 139, 196, 0.45);
        }

        .admin-main-nav {
            background-color: #0c0e11 !important;
            border-color: #1f2937 !important;
            box-shadow: inset 0 -2px 0 0 rgba(74, 122, 181, 0.4);
        }

        .status-card {
            text-align: left;
            padding: 0.75rem;
            border-radius: 0.75rem;
            border: 1px solid #374151;
            background: rgba(17, 24, 39, 0.5);
            transition: border-color 0.15s ease, background 0.15s ease;
        }

        .status-card:hover {
            border-color: #6b7280;
        }

        .status-card.is-active[data-status="draft"] {
            border-color: var(--accent);
            background: rgba(74, 122, 181, 0.12);
        }

        .status-card.is-active[data-status="published"] {
            border-color: rgba(34, 197, 94, 0.55);
            background: rgba(6, 78, 59, 0.28);
        }

        .status-card.is-active[data-status="scheduled"] {
            border-color: rgba(59, 130, 246, 0.55);
            background: rgba(23, 37, 84, 0.35);
        }

        @media (max-width: 640px) {
            .admin-topbar-hide-sm {
                display: none;
            }

            .admin-topbar-brand {
                max-width: 6rem;
            }
        }

        body.admin-logged-in nav.sticky {
            top: 2.35rem;
        }

        body.admin-logged-in #mobile-search.fixed {
            top: calc(4rem + 2.35rem);
        }

        p,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        article,
        .prose,
        input,
        textarea,
        code,
        pre,
        .select-text {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
            cursor: text;
        }

        img {
            -webkit-user-drag: none;
            -khtml-user-drag: none;
            -moz-user-drag: none;
            -o-user-drag: none;
            user-drag: none;
        }

        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 5px;
            border: 2px solid var(--bg);
            transition: background 0.2s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #4b5563;
        }

        :focus:not(:focus-visible) {
            outline: none;
        }

        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 4px;
        }

        .discuss-trip {
            color: var(--muted);
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.75rem;
        }
        .discuss-trip-link {
            color: #8eb4d4;
            text-decoration: none;
            font-family: inherit;
        }
        .discuss-trip-link:hover {
            color: #b7d4ed;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .discuss-trip-field {
            position: relative;
        }
        .discuss-trip-field input {
            padding-right: 2.5rem;
        }
        .discuss-trip-reveal {
            position: absolute;
            right: 0.35rem;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border: 0;
            border-radius: 0.4rem;
            background: transparent;
            color: #9ca3af;
            cursor: pointer;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .discuss-trip-reveal:hover {
            color: #e5e7eb;
            background: rgba(55, 65, 81, 0.55);
        }
        .discuss-trip-reveal:focus-visible {
            outline: 2px solid var(--accent-soft);
            outline-offset: 1px;
        }

        .poster-history {
            max-width: 52rem;
        }
        .poster-history-bar {
            background: rgba(31, 41, 55, 0.85);
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 0.55rem 0.9rem;
            font-size: 0.75rem;
            color: var(--muted);
        }
        .poster-history-entry {
            padding: 1.1rem 0 1.25rem;
            border-bottom: 1px solid rgba(55, 65, 81, 0.7);
        }
        .poster-history-entry:last-child {
            border-bottom: 0;
        }
        .poster-history-where {
            color: #8eb4d4;
            font-size: 0.875rem;
            font-weight: 600;
        }
        .poster-history-where:hover {
            color: #b7d4ed;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .poster-history-topic {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.35rem 1rem;
            margin-top: 0.2rem;
            font-size: 0.875rem;
            color: #9ca3af;
        }
        .poster-history-topic a {
            color: #e5e7eb;
            font-weight: 700;
        }
        .poster-history-topic a:hover {
            color: #fff;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .poster-history-when {
            color: #6b7280;
            font-size: 0.75rem;
            white-space: nowrap;
        }
        .poster-history-body {
            margin-top: 0.65rem;
            background: rgba(17, 24, 39, 0.72);
            border: 1px solid rgba(55, 65, 81, 0.8);
            border-radius: 0.45rem;
            padding: 0.85rem 1rem;
            color: #c4c9d1;
            font-size: 0.875rem;
            line-height: 1.55;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .poster-history-kind {
            display: inline-block;
            margin-left: 0.4rem;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #6b7280;
            vertical-align: middle;
        }

        .discuss-section-label {
            margin: 0 0 0.85rem;
            padding-bottom: 0.55rem;
            border-bottom: 1px solid var(--border);
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .discuss-op {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 0.75rem;
            padding: 1.25rem 1.35rem;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        @media (min-width: 768px) {
            .discuss-op {
                padding: 1.5rem 1.75rem;
            }
        }

        .discuss-op--staff {
            border-left: 2px solid var(--accent);
        }

        .discuss-replies {
            padding-top: 0.25rem;
        }

        .discuss-reply-rail {
            border-left: 2px solid rgba(74, 122, 181, 0.28);
            padding-left: 0.9rem;
            margin-left: 0.15rem;
        }

        .discuss-reply {
            background: rgba(17, 24, 39, 0.55);
            border: 1px solid rgba(55, 65, 81, 0.65);
            border-radius: 0.65rem;
            padding: 0.95rem 1.05rem;
        }

        .discuss-reply--staff {
            border-left: 2px solid var(--accent);
        }

        /* One-level nested replies — keep indent modest for mobile */
        .discuss-reply-children {
            margin-top: 0.65rem;
            margin-left: 0.35rem;
            padding-left: 0.7rem;
            border-left: 2px solid rgba(74, 122, 181, 0.35);
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
        }

        @media (min-width: 640px) {
            .discuss-reply-children {
                margin-left: 0.75rem;
                padding-left: 0.95rem;
            }
        }

        .discuss-reply--nested {
            background: rgba(17, 24, 39, 0.4);
        }

        .discuss-reply-actions {
            margin-top: 0.65rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.35rem;
        }

        .discuss-reply-actions .discuss-reply-btn {
            font-size: 0.75rem;
            font-weight: 700;
            color: #9ca3af;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            border: 1px solid transparent;
            background: transparent;
            cursor: pointer;
            transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }

        .discuss-reply-actions .discuss-reply-btn:hover {
            color: #e5e7eb;
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(75, 85, 99, 0.6);
        }

        .discuss-inline-composer {
            margin-top: 0.65rem;
            padding: 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(74, 122, 181, 0.35);
            background: rgba(12, 14, 17, 0.65);
        }

        .discuss-composer {
            margin-top: 0.25rem;
            padding-top: 1.25rem;
            border-top: 1px solid var(--border);
        }

        .discuss-composer-form {
            background: rgba(17, 24, 39, 0.45);
            border: 1px dashed rgba(75, 85, 99, 0.85);
            border-radius: 0.75rem;
            padding: 1.15rem 1.25rem;
        }

        .discuss-composer--locked {
            background: rgba(17, 24, 39, 0.35);
            border: 1px dashed rgba(75, 85, 99, 0.7);
            border-radius: 0.75rem;
            padding: 1.25rem;
        }

        .discuss-post-options > summary {
            list-style: none;
        }
        .discuss-post-options > summary::-webkit-details-marker {
            display: none;
        }
        .discuss-post-options > summary .ph-caret-down {
            transition: transform 0.15s ease;
        }
        .discuss-post-options[open] > summary .ph-caret-down {
            transform: rotate(180deg);
        }
        .discuss-post-options > .discuss-post-options-body,
        .discuss-post-options > div {
            padding-top: 0.75rem;
        }

        /* Discussion count on mod cards: soft signal when threads exist */
        .mod-card-discuss--has {
            color: #9dbaa8;
        }
        .mod-card-discuss--has:hover {
            color: #b5d0bf;
        }

        /* Pick detail: keep breathing room around the suggested-mods list */
        .pick-mods-panel {
            padding: 1.5rem !important;
        }
        .pick-mods-panel__head {
            padding-bottom: 1.25rem !important;
            margin-bottom: 1.25rem !important;
        }
        @media (min-width: 768px) {
            .pick-mods-panel {
                padding: 2rem !important;
            }
            .pick-mods-panel__head {
                padding-bottom: 1.5rem !important;
                margin-bottom: 1.5rem !important;
            }
        }

        /* Headings/paragraphs default to cursor:text; keep pointer when they are link labels */
        a h1,
        a h2,
        a h3,
        a h4,
        a h5,
        a h6,
        a p {
            cursor: pointer;
        }

        .discuss-topics {
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
        }

        /* Quiet count beside Favorites — centered with label, no pill */
        .fav-nav-count {
            display: inline-flex;
            align-items: center;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--muted);
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }

        .fav-nav-count.hidden {
            display: none !important;
        }

        /* Favorite button — clear outline vs filled heart */
        .mod-fav-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.35rem;
            height: 2.35rem;
            padding: 0;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(17, 24, 39, 0.78);
            color: #e5e7eb;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
            cursor: pointer;
            pointer-events: auto;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
        }
        .mod-fav-btn i {
            font-size: 1.15rem;
            line-height: 1;
            color: inherit;
            transition: color 0.15s ease, transform 0.15s ease;
        }
        .mod-fav-btn:hover {
            background: rgba(31, 41, 55, 0.95);
            border-color: rgba(255, 255, 255, 0.28);
            color: #fff;
        }
        .mod-fav-btn.is-faved {
            background: rgba(127, 29, 29, 0.72);
            border-color: rgba(248, 113, 113, 0.55);
            color: #fca5a5;
        }
        .mod-fav-btn.is-faved:hover {
            background: rgba(153, 27, 27, 0.85);
            color: #fecaca;
        }
        .mod-fav-btn.is-faved i {
            color: #f87171;
        }
        .mod-hero-btn.is-faved {
            background: rgba(127, 29, 29, 0.55);
            border-color: rgba(248, 113, 113, 0.5);
            color: #fca5a5;
        }
        .mod-hero-btn.is-faved:hover {
            background: rgba(153, 27, 27, 0.7);
            color: #fecaca;
        }
        .mod-hero-btn.is-faved i {
            color: #f87171;
        }

        .nav-promo-flag {
            width: 16px;
            height: 16px;
            object-fit: contain;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .site-drawer-flag {
            width: 16px;
            height: 16px;
            object-fit: contain;
            border-radius: 2px;
            flex-shrink: 0;
        }

        /* Mobile drawer */
        .site-drawer-backdrop {
            background: rgba(0, 0, 0, 0.72);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .site-drawer-panel {
            width: min(86vw, 20rem);
            background:
                linear-gradient(165deg, rgba(74, 122, 181, 0.08) 0%, transparent 42%),
                var(--surface, #16181c);
            border-right: 1px solid var(--border, #2a2e35);
            box-shadow: 18px 0 40px rgba(0, 0, 0, 0.45);
        }
        .site-drawer-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 1.15rem 1.1rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }
        .site-drawer-brand {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            min-width: 0;
            color: #fff;
            font-weight: 800;
            font-size: 1.05rem;
            letter-spacing: -0.02em;
            text-decoration: none;
        }
        .site-drawer-logo {
            height: 1.75rem;
            width: auto;
            max-width: 7rem;
            object-fit: contain;
            flex-shrink: 0;
        }
        .site-drawer-close {
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 0.65rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }
        .site-drawer-close:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.12);
        }
        .site-drawer-close i {
            font-size: 1.25rem;
        }
        .site-drawer-nav {
            flex: 1 1 auto;
            overflow-y: auto;
            padding: 0.85rem 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }
        .site-drawer-link {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding: 0.8rem 0.9rem;
            border-radius: 0.8rem;
            color: #d1d5db;
            font-size: 0.95rem;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid transparent;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        }
        .site-drawer-link i {
            font-size: 1.2rem;
            opacity: 0.9;
            width: 1.25rem;
            text-align: center;
            flex-shrink: 0;
        }
        .site-drawer-link:hover {
            background: rgba(255, 255, 255, 0.04);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.05);
        }
        .site-drawer-link.is-accent {
            color: #c4b5fd;
        }
        .site-drawer-link.is-accent:hover {
            color: #ddd6fe;
            background: rgba(139, 92, 246, 0.1);
            border-color: rgba(139, 92, 246, 0.2);
        }
        .site-drawer-link.is-promo {
            color: #e5e7eb;
        }
        .site-drawer-foot {
            margin-top: auto;
            padding: 1rem 0.9rem 1.25rem;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
        }
        .site-drawer-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            padding: 0.8rem 1rem;
            border-radius: 0.75rem;
            font-weight: 700;
            font-size: 0.9rem;
            text-decoration: none;
            color: #e5e7eb;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .site-drawer-btn:hover {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.16);
            background: rgba(255, 255, 255, 0.06);
        }
        .site-drawer-btn.is-primary {
            color: #fff;
            background: rgba(74, 122, 181, 0.28);
            border-color: rgba(74, 122, 181, 0.45);
        }
        .site-drawer-btn.is-primary:hover {
            background: rgba(74, 122, 181, 0.4);
            border-color: rgba(74, 122, 181, 0.65);
        }

        .mod-archive-note,
        .mod-side-card,
        .mod-tab-panel {
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
        }

        .mod-side-label {
            margin: 0;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
        }

        .home-welcome {
            position: relative;
            border-radius: 0.9rem;
            border: 1px solid rgba(74, 122, 181, 0.35);
            background:
                linear-gradient(135deg, rgba(74, 122, 181, 0.16) 0%, rgba(17, 24, 39, 0.55) 42%, rgba(15, 17, 19, 0.4) 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .home-welcome-inner {
            padding: 1.15rem 2.85rem 1.15rem 1.25rem;
        }

        .home-welcome-title {
            margin: 0 0 0.4rem;
            color: #fff;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }

        .home-welcome-body {
            margin: 0;
            color: #c5cdd8;
            font-size: 0.9rem;
            line-height: 1.55;
            max-width: 46rem;
        }

        .home-welcome-dismiss {
            position: absolute;
            top: 0.85rem;
            right: 0.85rem;
            width: 1.85rem;
            height: 1.85rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 0.45rem;
            background: rgba(0, 0, 0, 0.25);
            color: var(--muted);
            cursor: pointer;
            transition: color 0.15s ease, background-color 0.15s ease;
        }

        .home-welcome-dismiss:hover {
            color: #fff;
            background: rgba(0, 0, 0, 0.4);
        }

        .about-faq-item {
            border-radius: 0.75rem;
            border: 1px solid var(--border);
            background: rgba(17, 24, 39, 0.55);
            overflow: hidden;
        }

        .about-faq-q {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.95rem 1.1rem;
            cursor: pointer;
            color: #fff;
            font-size: 0.95rem;
            font-weight: 650;
            line-height: 1.35;
            user-select: none;
        }

        .about-faq-q::-webkit-details-marker {
            display: none;
        }

        .about-faq-q:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .about-faq-caret {
            flex-shrink: 0;
            color: var(--muted);
            transition: transform 0.18s ease;
        }

        .about-faq-item[open] .about-faq-caret {
            transform: rotate(180deg);
            color: var(--accent-soft);
        }

        .about-faq-a {
            padding: 0 1.1rem 1.1rem;
            color: #c5cdd8;
            font-size: 0.9rem;
            line-height: 1.6;
            border-top: 1px solid transparent;
        }

        .about-faq-item[open] .about-faq-a {
            border-top-color: rgba(55, 65, 81, 0.7);
            padding-top: 0.85rem;
        }

        .mod-quality {
            margin-top: 0.65rem;
            position: relative;
        }

        .mod-quality.has-top-rule {
            margin-top: 1rem;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border);
        }

        .mod-quality-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--muted);
            font-size: 0.875rem;
            text-align: left;
            cursor: help;
            transition: color 0.15s ease;
        }

        .mod-quality-btn:hover,
        .mod-quality-btn:focus-visible {
            color: var(--accent-soft);
            outline: none;
        }

        .mod-quality-label {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            flex-shrink: 0;
        }

        .mod-quality-label .ph-info {
            font-size: 0.85rem;
            opacity: 0.7;
        }

        .mod-quality-value {
            display: inline-flex;
            align-items: center;
            gap: 0.15rem;
            color: #e7b84a;
            font-size: 0.8rem;
            line-height: 1;
        }

        .mod-quality-value .ph-star.is-off {
            color: rgba(156, 163, 175, 0.4);
        }

        .mod-quality-value .ph-star.is-on {
            color: inherit;
        }

        .mod-quality-num {
            margin-left: 0.35rem;
            color: var(--muted);
            font-size: 0.75rem;
            font-variant-numeric: tabular-nums;
        }

        .mod-quality-btn:hover .mod-quality-num,
        .mod-quality-btn:focus-visible .mod-quality-num {
            color: var(--accent-soft);
        }

        .mod-quality-tip {
            display: none;
            margin-top: 0.55rem;
            padding: 0.65rem 0.75rem;
            border-radius: 0.5rem;
            border: 1px solid rgba(74, 122, 181, 0.28);
            background: rgba(17, 24, 39, 0.95);
            color: #c5cdd8;
            font-size: 0.75rem;
            line-height: 1.45;
        }

        .mod-quality-tip.is-open {
            display: block;
        }

        @media (hover: hover) and (pointer: fine) {
            .mod-quality:hover .mod-quality-tip,
            .mod-quality:focus-within .mod-quality-tip {
                display: block;
            }
        }

        .mod-card-score {
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            color: #e7b84a;
            padding: 0;
            margin: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
        }

        .mod-card-score:focus-visible {
            outline: 1px solid var(--accent-soft);
            outline-offset: 2px;
            border-radius: 0.25rem;
        }

        .mod-card-score .ph-star.is-on {
            font-size: 0.85rem;
            color: inherit;
        }

        /* Soft finish for raw in-game shots — listing cards + mod page gallery */
        .card-thumb-off .mod-listing-card-media::after,
        .card-thumb-off .mod-shot-media::after {
            display: none;
        }
        .card-thumb-off .mod-listing-card-shot,
        .card-thumb-off .mod-shot-img {
            filter: none;
        }
        .mod-listing-card-media::after,
        .mod-shot-media::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 12;
            pointer-events: none;
            background:
                radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.28) 100%),
                linear-gradient(to top, rgba(15, 17, 19, 0.22) 0%, transparent 42%);
        }
        .mod-listing-card-shot,
        .mod-shot-img {
            filter: contrast(1.06) saturate(1.08) brightness(1.02);
        }
        .mod-listing-card:hover .mod-listing-card-shot,
        .mod-shot-media:hover .mod-shot-img {
            filter: contrast(1.08) saturate(1.1) brightness(1.03);
        }
        .card-thumb-medium .mod-listing-card-media::after,
        .card-thumb-medium .mod-shot-media::after {
            background:
                radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.38) 100%),
                linear-gradient(to top, rgba(15, 17, 19, 0.32) 0%, transparent 48%);
        }
        .card-thumb-medium .mod-listing-card-shot,
        .card-thumb-medium .mod-shot-img {
            filter: contrast(1.1) saturate(1.12) brightness(1.03);
        }
        .card-thumb-medium .mod-listing-card:hover .mod-listing-card-shot,
        .card-thumb-medium .mod-shot-media:hover .mod-shot-img {
            filter: contrast(1.12) saturate(1.14) brightness(1.04);
        }
        .card-thumb-strong .mod-listing-card-media::after,
        .card-thumb-strong .mod-shot-media::after {
            background:
                radial-gradient(ellipse at center, transparent 32%, rgba(0, 0, 0, 0.48) 100%),
                linear-gradient(to top, rgba(15, 17, 19, 0.4) 0%, transparent 52%);
        }
        .card-thumb-strong .mod-listing-card-shot,
        .card-thumb-strong .mod-shot-img {
            filter: contrast(1.14) saturate(1.16) brightness(1.04);
        }
        .card-thumb-strong .mod-listing-card:hover .mod-listing-card-shot,
        .card-thumb-strong .mod-shot-media:hover .mod-shot-img {
            filter: contrast(1.16) saturate(1.18) brightness(1.05);
        }
        .mod-listing-card--tool .mod-listing-card-media::after {
            display: none;
        }

        /* Category colour wash — hue from --card-tint (set per card) */
        .card-tint-off .mod-listing-card-media::before {
            display: none;
        }
        .card-tint-subtle .mod-listing-card--has-tint .mod-listing-card-media::before,
        .card-tint-medium .mod-listing-card--has-tint .mod-listing-card-media::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 11;
            pointer-events: none;
        }
        .card-tint-subtle .mod-listing-card--has-tint .mod-listing-card-media::before {
            background:
                linear-gradient(145deg, color-mix(in srgb, var(--card-tint, #4a7ab5) 30%, transparent) 0%, transparent 48%),
                linear-gradient(330deg, color-mix(in srgb, var(--card-tint, #4a7ab5) 14%, transparent) 0%, transparent 42%);
        }
        .card-tint-medium .mod-listing-card--has-tint .mod-listing-card-media::before {
            background:
                linear-gradient(145deg, color-mix(in srgb, var(--card-tint, #4a7ab5) 44%, transparent) 0%, transparent 52%),
                linear-gradient(330deg, color-mix(in srgb, var(--card-tint, #4a7ab5) 22%, transparent) 0%, transparent 45%);
        }

        /* Gallery thumbs: lighter edge only (small frames) */
        .media-thumb.mod-shot-media::after {
            background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
        }

        /* Soft score tones - same family, no traffic-light red */
        .mod-score-q1 {
            color: #8b919a;
        }

        .mod-score-q2 {
            color: #b8a078;
        }

        .mod-score-q3 {
            color: #e7b84a;
        }

        .mod-score-q4 {
            color: #efc45c;
        }

        .mod-score-q5 {
            color: #f0d078;
        }

        /* Fixed-height blur backdrop + fade (object-top crops watermark; not tied to page height) */
        .mod-page-bg-layer {
            height: 38rem;
            max-height: 72vh;
            overflow: hidden;
        }

        .mod-page-bg-blur {
            height: 100%;
            filter: blur(11px);
            transform: scale(1.05);
            will-change: opacity;
        }

        .mod-page-bg-fade {
            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.45) 0%,
                rgba(15, 17, 19, 0.72) 45%,
                #0f1113 100%
            );
        }

        .mod-page-bg-fallback {
            background: linear-gradient(to bottom right, #1f2937, #111827, #0f1113);
        }

        @media (max-width: 767px) {
            .mod-page-bg-layer {
                height: 26rem;
                max-height: 68vh;
            }
        }

        /* Mod hero actions: equal icon bar on phone, richer CTA from md up */
        .mod-hero-btn {
            height: 3rem;
            flex: 1 1 0;
            min-width: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(31, 41, 55, 0.8);
            border: 1px solid #4b5563;
            border-radius: 0.5rem;
            color: #e5e7eb;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
        }

        .mod-hero-btn:hover {
            background: #374151;
        }

        .mod-hero-btn-liked {
            background: rgba(52, 120, 90, 0.28);
            border-color: rgba(110, 180, 145, 0.55);
            color: #9fd8b8;
        }

        .mod-hero-btn-liked:hover {
            background: rgba(52, 120, 90, 0.4);
            border-color: rgba(130, 200, 165, 0.7);
            color: #c5ebd4;
        }

        .mod-hero-btn-wide {
            gap: 0.375rem;
        }

        @media (min-width: 768px) {
            .mod-hero-btn {
                flex: 0 0 auto;
                width: 3rem;
            }

            .mod-hero-btn-wide {
                width: auto;
                padding-left: 1rem;
                padding-right: 1rem;
                gap: 0.5rem;
            }

            .mod-hero-download {
                padding-left: 1.5rem;
                padding-right: 1.5rem;
                background: var(--accent);
                border-color: transparent;
                color: #fff;
                font-weight: 700;
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
            }

            .mod-hero-download:hover {
                background: var(--accent-soft);
                transform: translateY(-1px);
            }
        }

        .ql-toolbar {
            background: #1f2937;
            border-radius: 0.5rem 0.5rem 0 0;
            border: 1px solid #374151 !important;
        }

        .ql-toolbar .ql-stroke {
            stroke: #9ca3af;
        }

        .ql-toolbar .ql-fill {
            fill: #9ca3af;
        }

        .ql-toolbar .ql-picker-label {
            color: #9ca3af;
        }

        .ql-toolbar button:hover .ql-stroke,
        .ql-toolbar button:hover .ql-fill {
            stroke: #fff;
            fill: #fff;
        }

        .ql-toolbar button.ql-active .ql-stroke,
        .ql-toolbar button.ql-active .ql-fill {
            stroke: #3b82f6;
            fill: #3b82f6;
        }

        .ql-container {
            background: #111827;
            color: white;
            border-color: #374151 !important;
            border-radius: 0 0 0.5rem 0.5rem;
            font-size: 1rem;
        }

        .ql-editor {
            color: #e5e7eb;
            min-height: 150px;
        }

        .admin-desc-editor.ql-container .ql-editor,
        #editor.ql-container .ql-editor {
            max-height: 16rem;
            min-height: 8rem;
            overflow-y: auto;
        }

        .mod-mirror-flag {
            height: 0.875rem;
            width: auto;
            max-width: 1.35rem;
            border-radius: 2px;
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
        }

        #content-files {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }

        #content-files.hidden {
            display: none;
        }

        .mod-mirror-row {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.85rem;
            padding: 0.85rem 1rem;
            border-radius: 0.75rem;
            border: 1px solid rgba(55, 65, 81, 0.85);
            background: rgba(17, 24, 39, 0.55);
            transition: border-color 0.15s ease, background-color 0.15s ease;
        }

        .mod-mirror-row:hover {
            border-color: rgba(75, 85, 99, 0.95);
            background: rgba(31, 41, 55, 0.45);
        }

        .mod-mirror-row.is-primary {
            border-color: rgba(74, 122, 181, 0.45);
            background: linear-gradient(90deg, rgba(74, 122, 181, 0.1) 0%, rgba(17, 24, 39, 0.4) 2.5rem);
        }

        .mod-mirror-row.is-primary:hover {
            border-color: rgba(91, 139, 196, 0.55);
        }

        .mod-mirror-meta {
            min-width: 0;
            flex: 1;
        }

        .mod-mirror-title-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem 0.65rem;
            min-width: 0;
        }

        .mod-mirror-badge {
            flex-shrink: 0;
            font-size: 0.625rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent-soft);
            background: rgba(74, 122, 181, 0.14);
            border: 1px solid rgba(74, 122, 181, 0.28);
            border-radius: 0.25rem;
            padding: 0.15rem 0.4rem;
            line-height: 1.2;
        }

        .mod-mirror-title {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            min-width: 0;
            max-width: 100%;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--text);
            font-size: 0.95rem;
            font-weight: 650;
            text-align: left;
            cursor: pointer;
        }

        .mod-mirror-title > .ph-file-archive {
            color: var(--accent-soft);
            opacity: 0.9;
            flex-shrink: 0;
        }

        .mod-mirror-copy {
            font-size: 0.7rem;
            color: var(--muted);
            opacity: 0;
            flex-shrink: 0;
            transition: opacity 0.15s ease;
        }

        .mod-mirror-title:hover .mod-mirror-copy,
        .group\/copy:hover .mod-mirror-copy {
            opacity: 0.7;
        }

        .mod-mirror-note {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            margin-top: 0.3rem;
            min-width: 0;
            color: var(--muted);
            font-size: 0.8125rem;
            font-weight: 500;
        }

        .mod-mirror-note .ph {
            color: rgba(156, 163, 175, 0.85);
            flex-shrink: 0;
            font-size: 0.9rem;
        }

        .mod-mirror-sha {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0.45rem;
            max-width: 100%;
            padding: 0;
            border: 0;
            background: transparent;
            color: rgba(156, 163, 175, 0.75);
            font-size: 0.6875rem;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            cursor: pointer;
            transition: color 0.15s ease;
        }

        .mod-mirror-sha:hover {
            color: var(--text);
        }

        .mod-mirror-dl {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            width: 100%;
            padding: 0.6rem 1.1rem;
            border-radius: 0.55rem;
            border: 1px solid rgba(75, 85, 99, 0.9);
            background: rgba(55, 65, 81, 0.55);
            color: var(--text);
            font-size: 0.8125rem;
            font-weight: 650;
            white-space: nowrap;
            text-decoration: none;
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }

        .mod-mirror-dl:hover {
            background: rgba(75, 85, 99, 0.75);
            border-color: rgba(107, 114, 128, 0.9);
            color: #fff;
        }

        .mod-mirror-dl.is-primary {
            border-color: rgba(74, 122, 181, 0.55);
            background: rgba(74, 122, 181, 0.22);
            color: #dbeafe;
        }

        .mod-mirror-dl.is-primary:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }

        .mod-mirror-dl .ph {
            font-size: 1.05rem;
        }

        @media (min-width: 768px) {
            .mod-mirror-row {
                flex-direction: row;
                align-items: center;
                gap: 1rem;
                padding: 0.75rem 1rem;
            }

            .mod-mirror-dl {
                width: auto;
                flex-shrink: 0;
            }
        }

        .ql-editor.ql-blank::before {
            color: #6b7280;
            font-style: italic;
        }

        .prose h1,
        .prose h2,
        .prose h3 {
            color: white;
            font-weight: 700;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .prose p {
            line-height: 1.7;
        }

        .prose a {
            color: #60a5fa;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.2s;
        }

        .prose a:hover {
            border-bottom-color: #60a5fa;
        }

        .prose ul {
            list-style: disc;
            margin-left: 1.5rem;
            margin-bottom: 1rem;
        }

        .prose img {
            margin: 1.5rem auto;
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
            max-height: 600px;
            object-fit: contain;
            border: 1px solid #374151;
            display: block;
        }

        .prose img+em {
            display: block;
            text-align: center;
            color: #9ca3af;
            font-size: 0.875rem;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            margin: 0.5rem auto 2rem;
            font-style: normal;
            background: rgba(0, 0, 0, 0.2);
            width: fit-content;
            padding: 0.2rem 0.8rem;
            border-radius: 999px;
            border: 1px solid #374151;
        }

        .admin-input {
            width: 100%;
            background-color: #111827;
            color: white;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            border: 1px solid #374151;
            transition: all 0.2s ease-in-out;
        }

        .admin-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }

        .admin-label {
            display: block;
            font-size: 0.75rem;
            font-weight: 700;
            color: #9ca3af;
            margin-bottom: 0.35rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .scrollbar-hide::-webkit-scrollbar {
            display: none;
        }

        .scrollbar-hide {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .continue-scroll {
            display: flex;
            gap: 0.75rem;
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            overscroll-behavior-x: contain;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x proximity;
            padding-bottom: 0.35rem;
            touch-action: pan-x;
            scroll-behavior: smooth;
        }

        .continue-scroll-item {
            flex: 0 0 240px;
            width: 240px;
            max-width: 240px;
            scroll-snap-align: start;
        }

        .tab-btn {
            color: var(--muted);
            position: relative;
        }

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

        .tab-btn.active {
            color: var(--accent-soft);
        }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0.75rem;
            right: 0.75rem;
            width: auto;
            height: 2px;
            border-radius: 1px;
            background-color: var(--accent);
        }

        .mod-tab-panel {
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
        }

        .mod-desc-body {
            color: #d1d5db;
            font-size: 0.95rem;
            line-height: 1.65;
        }

        .mod-desc-attrib {
            margin: 0 0 1rem !important;
            font-size: 0.7rem;
            font-weight: 500;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--muted);
            line-height: 1.4;
        }

        .mod-desc-attrib span {
            margin: 0 0.35rem;
            opacity: 0.55;
            text-transform: none;
            letter-spacing: 0;
        }

        .mod-desc-body :where(p) {
            margin: 0 0 1.15em;
        }

        .mod-desc-body :where(p):last-child {
            margin-bottom: 0;
        }

        .mod-desc-body :where(h1),
        .mod-desc-body :where(h2),
        .mod-desc-body :where(h3),
        .mod-desc-body :where(h4) {
            margin-top: 1.35em;
            margin-bottom: 0.55em;
        }

        .mod-desc-body a {
            color: var(--accent-soft);
        }

        #lightbox {
            display: none;
            position: fixed;
            z-index: 100;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
        }

        #lightbox img {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes softPulse {
            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.25);
            }

            50% {
                box-shadow: 0 0 0 4px rgba(168, 85, 247, 0);
            }
        }

        @keyframes actionPopFav {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
            }

            45% {
                transform: scale(1.2);
                box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
                background: rgba(127, 29, 29, 0.55);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            }
        }

        @keyframes actionPopLike {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(110, 180, 145, 0.55);
            }

            45% {
                transform: scale(1.06);
                box-shadow: 0 0 0 12px rgba(110, 180, 145, 0);
                filter: brightness(1.2);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(110, 180, 145, 0);
                filter: brightness(1);
            }
        }

        .animate-fade-in {
            opacity: 0;
            animation: fadeIn 0.45s ease-out forwards;
        }

        .animate-fade-in-down {
            animation: fadeInDown 0.3s ease-out forwards;
        }

        .error-404-media {
            min-height: 240px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .error-404-gif {
            width: min(240px, 70vw);
            height: auto;
            border-radius: 1.25rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
            background: #111827;
            opacity: 0;
            transform: translateY(6px);
            transition: opacity 0.55s ease, transform 0.55s ease;
        }

        .error-404-gif.is-ready {
            opacity: 1;
            transform: translateY(0);
        }

        .error-404-gif.is-failed {
            display: none;
        }

        .error-404-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }

        .error-404-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 2.75rem;
            padding: 0.7rem 1.35rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 700;
            line-height: 1.25;
            box-sizing: border-box;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }

        .error-404-btn i {
            font-size: 1.1rem;
            line-height: 1;
        }

        .error-404-btn--primary {
            background: var(--accent);
            color: #fff;
            border: 1px solid transparent;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
        }

        .error-404-btn--primary:hover {
            background: var(--accent-soft);
        }

        .error-404-btn--ghost {
            background: transparent;
            color: #d1d5db;
            border: 1px solid #374151;
        }

        .error-404-btn--ghost:hover {
            color: #fff;
            border-color: #6b7280;
        }

        .error-404-hint {
            margin-top: 2.5rem;
            max-width: 24rem;
            font-size: 0.75rem;
            line-height: 1.5;
            color: #4b5563;
        }

        .badge-soft-pulse {
            animation: softPulse 2.8s ease-in-out infinite;
        }

        .action-pop-fav {
            animation: actionPopFav 0.4s ease-out;
        }

        .action-pop-like {
            animation: actionPopLike 0.4s ease-out;
        }

        /* Viewport-fixed save bar (must not sit under a transformed ancestor) */
        .admin-editor-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 40;
            border-top: 1px solid #374151;
            background: rgba(17, 19, 22, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        /* vBulletin-style settings shell */
        .admin-settings {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 1rem;
            align-items: start;
        }
        @media (min-width: 900px) {
            .admin-settings {
                grid-template-columns: 220px minmax(0, 1fr);
                gap: 1.25rem;
            }
        }
        /* Mobile: horizontal chip strip (not sticky — sticky caused content to scroll under tabs) */
        .admin-settings-nav {
            background: #1a1d21;
            border: 1px solid #374151;
            border-radius: 0.75rem;
            padding: 0.45rem;
            position: static;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 0.35rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            z-index: 1;
        }
        .admin-settings-nav-title {
            display: none;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #6b7280;
            padding: 0.65rem 0.75rem 0.35rem;
        }
        .admin-settings-nav button {
            flex: 0 0 auto;
            width: auto;
            white-space: nowrap;
            text-align: left;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #9ca3af;
            transition: background 0.15s ease, color 0.15s ease;
        }
        .admin-settings-nav button:hover {
            background: rgba(255, 255, 255, 0.04);
            color: #e5e7eb;
        }
        .admin-settings-nav button.is-active {
            background: rgba(74, 122, 181, 0.18);
            color: #fff;
            box-shadow: none;
        }
        .admin-settings-nav button i {
            font-size: 1.05rem;
            opacity: 0.9;
        }
        @media (min-width: 900px) {
            .admin-settings-nav {
                display: block;
                position: sticky;
                top: 5rem;
                overflow-x: visible;
                padding: 0.5rem;
            }
            .admin-settings-nav-title {
                display: block;
            }
            .admin-settings-nav button {
                width: 100%;
                display: flex;
                font-size: 0.875rem;
                padding: 0.55rem 0.75rem;
                gap: 0.55rem;
            }
            .admin-settings-nav button.is-active {
                box-shadow: inset 3px 0 0 #4a7ab5;
            }
        }
        .admin-settings-main > .hidden {
            display: none !important;
        }
        .admin-settings-panel {
            min-width: 0;
            background: #1a1d21;
            border: 1px solid #374151;
            border-radius: 0.75rem;
            padding: 1.5rem;
        }
        .browse-pack-row.is-collapsed {
            padding-top: 0.85rem;
            padding-bottom: 0.85rem;
        }
        .browse-pack-row.is-collapsed .browse-pack-body {
            display: none;
        }
        .browse-pack-row.is-collapsed .browse-pack-toggle i {
            transform: rotate(-90deg);
        }
        .browse-pack-toggle i {
            transition: transform 0.15s ease;
        }
        .browse-pack-summary:hover .browse-pack-summary-title {
            color: #93c5fd;
        }
        .admin-settings-panel h3 {
            font-size: 1.125rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 0.25rem;
        }
        .admin-settings-panel .panel-desc {
            font-size: 0.8125rem;
            color: #9ca3af;
            margin-bottom: 1.25rem;
        }
        .admin-settings-save {
            position: sticky;
            bottom: 0.75rem;
            z-index: 20;
            margin-top: 1rem;
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            border: 1px solid #374151;
            background: rgba(17, 19, 22, 0.92);
            backdrop-filter: blur(10px);
        }

        .admin-settings-save.hidden {
            display: none !important;
        }

        .ops-spark {
            flex-shrink: 0;
            opacity: 0.95;
        }

        .ops-bar-row {
            display: flex;
            align-items: flex-end;
            gap: 2px;
            height: 2rem;
            width: 100%;
        }

        .ops-bar {
            flex: 1 1 0;
            min-width: 0;
            border-radius: 2px 2px 0 0;
            opacity: 0.75;
        }

        .stagger-1 {
            animation-delay: 0.04s;
        }

        .stagger-2 {
            animation-delay: 0.1s;
        }

        .stagger-3 {
            animation-delay: 0.16s;
        }

        @media (prefers-reduced-motion: reduce) {
            .animate-fade-in,
            .animate-fade-in-down,
            .badge-soft-pulse,
            .action-pop-fav,
            .action-pop-like,
            .stagger-1,
            .stagger-2,
            .stagger-3 {
                animation: none !important;
                opacity: 1 !important;
                transform: none !important;
                filter: none !important;
            }
        }

        .btn-press:active,
        a.group:active,
        button:active {
            transform: scale(0.97);
            transition: transform 0.1s ease-in-out;
        }

        @keyframes shimmer {
            0% {
                background-position: -468px 0;
            }

            100% {
                background-position: 468px 0;
            }
        }

        ::selection {
            background-color: rgba(59, 130, 246, 0.9);
            color: white;
        }

        ::-moz-selection {
            background-color: rgba(59, 130, 246, 0.9);
            color: white;
        }

        .copyright-trap {
            position: absolute;
            left: -9999px;
            opacity: 0;
        }

        .footer-steam-link {
            display: inline-flex;
            line-height: 0;
        }

        .footer-steam-logo {
            height: 22px;
            width: auto;
            opacity: 0.35;
            filter: grayscale(1);
            transition: opacity 0.2s ease, filter 0.2s ease;
        }

        .footer-steam-link:hover .footer-steam-logo {
            opacity: 0.9;
            filter: grayscale(0);
        }

        /* Featured browse-pack layouts */
        .pack-feature-intro {
            max-width: 40rem;
            margin-left: auto;
            margin-right: auto;
        }
        .pack-hero-featured {
            max-width: 42rem;
        }
        .pack-hero-banner {
            margin-top: 0.25rem;
        }
        /* Mod listing density: 2-up on phones */
        .mod-listing-grid .mod-spotlight {
            grid-column: 1 / -1;
        }
        .mod-listing-grid .mod-listing-card .p-5 {
            padding: 0.75rem;
        }
        @media (min-width: 640px) {
            .mod-listing-grid .mod-listing-card .p-5 {
                padding: 1.25rem;
            }
        }
        .mod-listing-grid .mod-listing-card h2 {
            font-size: 0.95rem;
            line-height: 1.25;
        }
        @media (min-width: 640px) {
            .mod-listing-grid .mod-listing-card h2 {
                font-size: 1.125rem;
            }
        }
        .mod-listing-grid .mod-listing-card .line-clamp-2 {
            font-size: 0.7rem;
            line-height: 1.35;
        }
        @media (min-width: 640px) {
            .mod-listing-grid .mod-listing-card .line-clamp-2 {
                font-size: 0.75rem;
            }
        }
        .mod-listing-grid .mod-listing-card-dl {
            padding-top: 0.55rem;
            padding-bottom: 0.55rem;
            font-size: 0.65rem;
        }
        @media (min-width: 640px) {
            .mod-listing-grid .mod-listing-card-dl {
                padding-top: 0.625rem;
                padding-bottom: 0.625rem;
                font-size: 0.75rem;
            }
        }
        /* Keep card footers one line in 2-up mobile grids */
        .mod-listing-grid .mod-card-foot {
            flex-wrap: nowrap;
        }
        .mod-listing-grid .mod-card-meta {
            flex-wrap: nowrap;
            gap: 0.35rem;
        }
        .mod-listing-grid .mod-card-discuss--empty {
            display: none;
        }
        .mod-listing-grid .mod-card-ver {
            padding-left: 0.35rem;
            padding-right: 0.35rem;
            font-size: 0.65rem;
        }
        @media (min-width: 1024px) {
            .mod-listing-grid .mod-card-meta {
                gap: 0.5rem;
            }
            .mod-listing-grid .mod-card-discuss--empty {
                display: inline-flex;
            }
            .mod-listing-grid .mod-card-ver {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
                font-size: inherit;
            }
        }
        /* Pack-local search — slim centered pill */
        .pack-search {
            position: sticky;
            top: 0.5rem;
            z-index: 30;
            width: min(100%, 18.5rem);
            margin: 0 auto 1.75rem;
            border-radius: 4px;
            padding: 10px 15px 10px 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(17, 24, 39, 0.72);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: none;
        }
        body.admin-logged-in .pack-search {
            top: 3.25rem;
        }
        @media (min-width: 768px) {
            .pack-search {
                top: 1rem;
                width: min(100%, 20rem);
                margin-bottom: 1.75rem;
            }
            body.admin-logged-in .pack-search {
                top: 3.5rem;
            }
        }
        .pack-search:focus-within {
            border-color: rgba(255, 255, 255, 0.22);
            background: rgba(17, 24, 39, 0.88);
        }
        .pack-search-row {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0 0.65rem 0 0.85rem;
            min-height: 2.25rem;
        }
        .pack-search-row i.ph-magnifying-glass {
            color: #6b7280;
            font-size: 0.95rem;
            flex-shrink: 0;
        }
        .pack-search-input {
            flex: 1;
            min-width: 0;
            height: 2.25rem;
            background: transparent;
            border: 0;
            outline: none;
            color: #e5e7eb;
            font-size: 0.8125rem;
            line-height: 1;
        }
        .pack-search-input::placeholder {
            color: #6b7280;
        }
        .pack-search-clear {
            flex-shrink: 0;
            width: 1.5rem;
            height: 1.5rem;
            display: none;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 999px;
            background: transparent;
            color: #9ca3af;
            cursor: pointer;
            padding: 0;
        }
        .pack-search-clear.is-visible {
            display: inline-flex;
        }
        .pack-search-clear:hover {
            color: #fff;
            background: rgba(55, 65, 81, 0.7);
        }
        .pack-search-meta {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 0.35rem;
            font-size: 0.65rem;
            color: var(--muted);
            white-space: nowrap;
            pointer-events: none;
        }
        .pack-search-meta:empty {
            display: none;
        }
        .pack-section.is-search-hidden {
            display: none;
        }
        .mod-listing-card.is-search-hidden {
            display: none;
        }
        .pack-sections {
            display: flex;
            flex-direction: column;
            gap: 3.5rem;
        }
        @media (min-width: 768px) {
            .pack-sections {
                gap: 4.5rem;
            }
        }
        .pack-sections:has(> .pack-section.is-collapsed) {
            gap: 1.25rem;
        }
        @media (min-width: 768px) {
            .pack-sections:has(> .pack-section.is-collapsed) {
                gap: 1.5rem;
            }
        }
        .pack-section {
            scroll-margin-top: 5rem;
        }
        /* One separator between sections — not a line under every heading too */
        .pack-section + .pack-section {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 3.5rem;
        }
        @media (min-width: 768px) {
            .pack-section + .pack-section {
                padding-top: 4.5rem;
            }
        }
        .pack-section.is-collapsed + .pack-section,
        .pack-section + .pack-section.is-collapsed {
            padding-top: 1.25rem;
        }
        @media (min-width: 768px) {
            .pack-section.is-collapsed + .pack-section,
            .pack-section + .pack-section.is-collapsed {
                padding-top: 1.5rem;
            }
        }
        .pack-section-head {
            margin-bottom: 1.5rem;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            cursor: pointer;
            border-radius: 0.75rem;
            outline: none;
            transition: background 0.15s ease;
            -webkit-user-select: none;
            user-select: none;
        }
        .pack-section-head,
        .pack-section-head * {
            cursor: pointer;
        }
        .pack-section-head:hover {
            background: rgba(255, 255, 255, 0.02);
        }
        .pack-section-head:hover .pack-section-toggle {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.06);
        }
        .pack-section-head:focus-visible {
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
        }
        .pack-section-head h2 {
            letter-spacing: -0.02em;
        }
        .pack-section-toggle {
            flex-shrink: 0;
            width: 2.75rem;
            height: 2.75rem;
            min-width: 2.75rem;
            min-height: 2.75rem;
            margin-top: 0.15rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.65rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            color: #9ca3af;
            cursor: pointer;
            transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        }
        .pack-section-toggle:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.18);
        }
        .pack-section-toggle i {
            font-size: 1.15rem;
            transition: transform 0.2s ease;
        }
        .pack-section.is-collapsed .pack-section-toggle i {
            transform: rotate(180deg);
        }
        .pack-section.is-collapsed .pack-section-body {
            display: none;
        }
        .pack-section.is-collapsed .pack-section-head {
            margin-bottom: 0;
            opacity: 0.88;
        }
        .pack-section.is-collapsed .pack-section-head:hover {
            opacity: 1;
        }
        .pack-page--accent .pack-section-toggle:hover {
            border-color: color-mix(in srgb, var(--pack-accent) 45%, rgba(255, 255, 255, 0.15));
            color: color-mix(in srgb, var(--pack-accent) 75%, #fff);
        }

        /* Pack page atmosphere — longer than mod pages, same soft fade into --bg */
        .pack-page {
            --pack-accent: transparent;
            --pack-bd-wash: 0.55;
            position: relative;
            isolation: isolate;
            flex: 1 0 auto;
            width: 100%;
            display: flex;
            flex-direction: column;
            background-color: var(--bg);
            /* Tall absolute backdrop must not create a scrollable gap under the footer */
            overflow: hidden;
        }
        .pack-page-inner {
            position: relative;
            z-index: 1;
            flex: 1 0 auto;
            width: 100%;
            display: flex;
            flex-direction: column;
            min-height: 100%;
        }
        .pack-atmo-layer {
            --pack-bd-height: 72rem;
            --pack-bd-wash: 0.55;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: min(var(--pack-bd-height), 100%);
            max-height: 100%;
            overflow: hidden;
            pointer-events: none;
            z-index: 0;
        }
        @media (max-width: 767px) {
            .pack-atmo-layer {
                height: min(var(--pack-bd-height), 88vh, 100%);
            }
        }
        .pack-backdrop-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            transform: scale(1.05);
            transform-origin: center top;
            /* Image itself dissolves so it never hard-cuts */
            -webkit-mask-image: linear-gradient(
                to bottom,
                #000 0%,
                #000 42%,
                rgba(0, 0, 0, 0.55) 68%,
                transparent 100%
            );
            mask-image: linear-gradient(
                to bottom,
                #000 0%,
                #000 42%,
                rgba(0, 0, 0, 0.55) 68%,
                transparent 100%
            );
        }
        .pack-backdrop-fade {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, calc(0.32 + var(--pack-bd-wash) * 0.22)) 0%,
                rgba(15, 17, 19, calc(0.5 + var(--pack-bd-wash) * 0.28)) 38%,
                rgba(15, 17, 19, calc(0.82 + var(--pack-bd-wash) * 0.12)) 68%,
                var(--bg) 88%,
                var(--bg) 100%
            );
        }
        .pack-fx-vignette {
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.5) 100%);
            -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
        }
        .pack-page--accent .pack-section + .pack-section {
            border-top-color: color-mix(in srgb, var(--pack-accent) 40%, rgba(255, 255, 255, 0.06));
        }
        /* Short accent mark under section titles — not a full-width second rule */
        .pack-page--accent .pack-section-head h2::after {
            content: "";
            display: block;
            width: 2.25rem;
            height: 2px;
            margin-top: 0.7rem;
            border-radius: 1px;
            background: var(--pack-accent);
            opacity: 0.9;
        }
        .pack-page--accent .pack-feature-intro h1,
        .pack-page--accent .pack-hero-featured h1 {
            text-shadow: 0 0 40px color-mix(in srgb, var(--pack-accent) 35%, transparent);
        }
        /* Cards: tint chrome only — rest + hover, download CTA */
        .pack-page--accent .mod-listing-card {
            border-color: color-mix(in srgb, var(--pack-accent) 22%, rgba(255, 255, 255, 0.05));
        }
        .pack-page--accent .mod-listing-card:hover {
            border-color: color-mix(in srgb, var(--pack-accent) 58%, rgba(255, 255, 255, 0.12));
            box-shadow: 0 0 0 1px color-mix(in srgb, var(--pack-accent) 18%, transparent);
        }
        .pack-page--accent .mod-listing-card:not(.mod-listing-card--tool):hover h2,
        .pack-page--accent .mod-listing-card:not(.mod-listing-card--tool):hover h2 a {
            color: color-mix(in srgb, var(--pack-accent) 78%, #fff);
        }
        .pack-page--accent .mod-listing-card-dl {
            background: color-mix(in srgb, var(--pack-accent) 82%, #0b0c0e);
            border-color: color-mix(in srgb, var(--pack-accent) 45%, transparent);
            box-shadow: 0 6px 18px color-mix(in srgb, var(--pack-accent) 22%, transparent);
        }
        .pack-page--accent .mod-listing-card-dl:hover {
            background: color-mix(in srgb, var(--pack-accent) 92%, #fff);
        }
        .pack-intro-html p {
            margin: 0.4em 0;
        }
        .pack-intro-html a {
            color: color-mix(in srgb, var(--pack-accent, #8ecae6) 85%, #fff);
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .pack-intro-html ul,
        .pack-intro-html ol {
            margin: 0.5em auto;
            padding-left: 1.25rem;
            text-align: left;
            display: inline-block;
        }