:root {
    --ink: #11130f;
    --paper: #f4f2e9;
    --surface: #fffdf6;
    --line: #d9d7cc;
    --muted: #6e7168;
    --lime: #d9ff5d;
    --lime-deep: #b8e52d;
    --coral: #ff856f;
    --blue: #72c8ff;
    --purple: #b9a3ff;
    --radius: 18px;
    --shadow: 0 18px 55px rgba(27, 31, 20, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--lime); color: var(--ink); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: inline-block; color: #63675d; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(17,19,15,.94); color: #fff; backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.035em; font-size: 1.15rem; }
.brand > span:last-child span { color: var(--lime); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 1.25rem; }
.site-nav { display: flex; align-items: center; gap: 23px; font-size: .88rem; font-weight: 700; }
.site-nav > a:not(.button):hover, .nav-signout:hover { color: var(--lime); }
.inline-form { display: inline; margin: 0; }
.nav-signout { padding: 0; border: 0; background: none; color: #c5c7c0; font-size: .8rem; }
.user-pill { display: flex; align-items: center; gap: 8px; }
.user-pill > span:last-child { display: grid; }
.user-pill strong { font-size: .78rem; }
.user-pill small { color: var(--lime); font-size: .65rem; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid #43483e; border-radius: 50%; background: #252920; color: var(--lime); font-weight: 900; }
.avatar.large { width: 48px; height: 48px; }
.nav-toggle { display: none; padding: 8px 12px; border: 1px solid #45483f; border-radius: 8px; background: transparent; color: white; font-size: .82rem; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: .86rem; font-weight: 850; line-height: 1; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 38px; padding-inline: 16px; font-size: .78rem; }
.button-full { width: 100%; }
.button-lime { background: var(--lime); color: var(--ink); box-shadow: 0 7px 22px rgba(217,255,93,.16); }
.button-lime:hover { background: #e4ff8d; }
.button-dark { background: var(--ink); color: #fff; }
.button-outline { border-color: #bfc1b7; background: transparent; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.text-link { border-bottom: 1px solid #a9aca3; font-size: .88rem; font-weight: 750; }

.flash-stack { position: fixed; z-index: 90; top: 92px; left: 50%; width: min(650px, calc(100% - 32px)); transform: translateX(-50%); }
.flash { margin-bottom: 8px; padding: 13px 16px; border: 1px solid; border-radius: 12px; box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; }
.flash-success { border-color: #9ed532; background: #efffc1; }
.flash-error { border-color: #f19a89; background: #fff0ed; }

.hero { min-height: 620px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; padding-block: 92px; }
.hero h1, .levels-hero h1 { margin: 13px 0 23px; font-size: clamp(3.6rem, 7.4vw, 7rem); font-weight: 900; letter-spacing: -.085em; line-height: .84; }
.hero h1 em, .levels-hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--ink); }
.hero-copy > p { max-width: 650px; margin: 0; color: #595d54; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hero-orbit { position: relative; min-height: 480px; }
.orbit-ring { position: absolute; inset: 35px; border: 1px solid #c9c8bd; border-radius: 50%; }
.orbit-ring::before, .orbit-ring::after { position: absolute; content: ""; border: 1px solid #dcdbd2; border-radius: 50%; }
.orbit-ring::before { inset: 18%; }
.orbit-ring::after { inset: 38%; background: var(--lime); border: 0; box-shadow: 0 0 80px rgba(217,255,93,.5); }
.orbit-card { position: absolute; width: 176px; padding: 19px; border: 1px solid #d0cfc5; border-radius: 16px; background: rgba(255,253,246,.9); box-shadow: var(--shadow); transform: rotate(var(--angle)); }
.orbit-card span { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--ink); color: var(--lime); }
.orbit-card strong, .orbit-card small { display: block; }
.orbit-card strong { font-size: .96rem; }
.orbit-card small { color: var(--muted); }
.orbit-one { --angle: -7deg; top: 35px; right: 30px; }
.orbit-two { --angle: 5deg; top: 205px; left: 0; }
.orbit-three { --angle: -2deg; right: 0; bottom: 10px; }

.signal-bar { border-block: 1px solid #2e322a; background: var(--ink); color: white; }
.signal-grid { min-height: 130px; display: grid; grid-template-columns: repeat(3, 1fr) 1.7fr; align-items: center; gap: 28px; }
.signal-grid > div { display: grid; border-right: 1px solid #3d4138; }
.signal-grid strong { color: var(--lime); font-size: 1.9rem; line-height: 1.1; }
.signal-grid span { color: #b2b5ad; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.signal-grid p { margin: 0; color: #cdd0c8; font-size: .9rem; }

.feed-section { padding-block: 85px 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.05em; line-height: 1; }
.section-heading.compact h2 { font-size: 1.85rem; }
.section-heading > p { max-width: 430px; color: var(--muted); font-size: .84rem; }
.sort-tabs { display: flex; padding: 5px; border: 1px solid #d1d0c6; border-radius: 999px; background: #eae8df; }
.sort-tabs a { padding: 8px 13px; border-radius: 999px; color: #6a6d65; font-size: .73rem; font-weight: 800; }
.sort-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 9px rgba(0,0,0,.08); }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.category-filter a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #d3d1c7; border-radius: 999px; color: #666960; font-size: .74rem; font-weight: 750; }
.category-filter a span { width: 7px; height: 7px; border-radius: 50%; background: var(--category); }
.category-filter a.is-active, .category-filter a:hover { border-color: var(--ink); color: var(--ink); }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.feed-list { display: grid; gap: 12px; }
.link-card { display: grid; grid-template-columns: 68px minmax(0, 1fr); overflow: hidden; border: 1px solid #dad8ce; border-radius: var(--radius); background: var(--surface); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.link-card:hover { transform: translateY(-2px); border-color: #c3c5bb; box-shadow: var(--shadow); }
.vote-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-right: 1px solid #e1dfd6; background: #f0eee5; }
.vote-button { width: 30px; height: 28px; padding: 0; border: 0; background: transparent; color: #9b9e95; font-size: .72rem; }
.vote-button:hover, .vote-button.is-active { color: var(--ink); }
.vote-button.is-active { border-radius: 8px; background: var(--lime); }
.vote-score { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.link-content { min-width: 0; padding: 22px 25px 20px; }
.link-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #767970; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.category-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--category); }
.community-verified-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #94b82d; border-radius: 999px; background: #efffc1; color: #3d5112; font-size: .61rem; font-weight: 900; letter-spacing: .035em; }
.link-content h2 { margin: 8px 0 8px; font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.25; }
.link-content h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.external { margin-left: 7px; color: #8d9087; font-size: .83em; }
.link-content > p { max-width: 760px; margin: 0; color: #5c6057; font-size: .88rem; }
.link-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: #85887f; font-size: .7rem; }
.link-meta a:first-child { color: var(--ink); font-weight: 800; }
.level-chip { display: inline-flex; padding: 3px 7px; border: 1px solid #d1d0c6; border-radius: 999px; color: #55594f; background: #f4f2e9; font-size: .62rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.comments-link { margin-left: auto; color: #565a51; font-weight: 800; }
.inline-edit-link { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #c8c7bd; border-radius: 7px; color: var(--ink); font-weight: 850; }
.inline-edit-link:hover { border-color: var(--ink); background: var(--lime); }
.inline-spam-link { color: #9d3a2b; font-weight: 800; }
.inline-spam-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed-aside { position: sticky; top: 102px; display: grid; gap: 14px; }
.aside-card { padding: 27px; border: 1px solid #d7d5ca; border-radius: var(--radius); background: var(--surface); }
.aside-card h3 { margin: 8px 0 10px; font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.1; }
.aside-card p { color: #61645b; font-size: .84rem; }
.aside-card a { font-size: .78rem; font-weight: 850; }
.edit-link-card p { margin: 8px 0 17px; }
.spam-report-card p { margin: 8px 0 14px; }
.spam-report-button { width: 100%; min-height: 40px; border: 1px solid #d46350; border-radius: 999px; background: transparent; color: #a33423; font-size: .76rem; font-weight: 850; }
.spam-report-button:hover { background: #fff0ed; }
.aside-lime { border-color: #c4e64e; background: var(--lime); }
.aside-lime .eyebrow { color: #515936; }
.empty-state { padding: 55px 30px; border: 1px dashed #c9c8bd; border-radius: var(--radius); text-align: center; }
.empty-state > span { display: block; font-size: 2rem; }
.empty-state h2, .empty-state h3 { margin-bottom: 5px; font-size: 1.4rem; }
.empty-state p { color: var(--muted); }
.archive-callout { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 8px; padding: 22px 24px; border: 1px solid #bedf4a; border-radius: var(--radius); background: var(--lime); }
.archive-callout > div { display: grid; gap: 3px; }
.archive-callout strong { font-size: .94rem; }
.archive-callout span { color: #50563d; font-size: .76rem; }

.archive-hero { border-bottom: 1px solid #30342c; background: var(--ink); color: #fff; }
.archive-hero-inner { min-height: 350px; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.archive-hero .eyebrow { color: #aeb2a8; }
.archive-hero h1 { margin: 10px 0 18px; font-size: clamp(3.4rem, 7vw, 6.5rem); letter-spacing: -.075em; line-height: .88; }
.archive-hero h1 em { color: var(--lime); font-style: normal; }
.archive-hero p { max-width: 650px; margin: 0; color: #b9bdb3; font-size: 1rem; }
.archive-count { display: grid; flex: 0 0 auto; min-width: 210px; padding: 28px; border: 1px solid #44493e; border-radius: var(--radius); background: #20241d; }
.archive-count strong { color: var(--lime); font-size: 3rem; letter-spacing: -.06em; line-height: 1; }
.archive-count span { margin-top: 5px; color: #aeb2a8; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.archive-section { padding-block: 55px 110px; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 20px; color: var(--muted); font-size: .76rem; }
.archive-toolbar p { margin: 0; }
.archive-toolbar span { font-weight: 800; }
.archive-list { max-width: 880px; margin-inline: auto; }
.archive-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 35px; }
.archive-pagination a { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding-inline: 13px; border: 1px solid #cbc9bf; border-radius: 9px; background: var(--surface); font-size: .76rem; font-weight: 850; }
.archive-pagination a:hover, .archive-pagination a.is-active { border-color: var(--ink); background: var(--lime); }
.archive-pagination .pagination-direction { min-width: 100px; }
.pagination-ellipsis { display: inline-grid; width: 28px; height: 40px; place-items: center; color: var(--muted); }
.archive-back { margin-top: 35px; text-align: center; }
.archive-back a { color: var(--muted); font-size: .78rem; font-weight: 800; }
.archive-back a:hover { color: var(--ink); }

.community-hero { border-bottom: 1px solid #30342c; background: var(--ink); color: #fff; }
.community-hero-inner { min-height: 470px; display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.community-hero .eyebrow { color: #aeb2a8; }
.community-hero h1 { margin: 12px 0 22px; font-size: clamp(3.7rem, 7vw, 6.8rem); letter-spacing: -.08em; line-height: .82; }
.community-hero h1 em { color: var(--lime); font-style: normal; }
.community-hero p { max-width: 650px; margin: 0; color: #b9bdb3; font-size: 1.03rem; }
.leaderboard-principle { flex: 0 0 280px; padding: 30px; border: 1px solid #44493e; border-radius: 20px; background: #20241d; }
.leaderboard-principle span, .leaderboard-principle strong { display: block; }
.leaderboard-principle span { color: #aeb2a8; font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.leaderboard-principle strong { margin: 7px 0 13px; color: var(--lime); font-size: 2.6rem; letter-spacing: -.06em; line-height: 1; }
.leaderboard-principle p { font-size: .78rem; }
.leaderboard-page { padding-block: 55px 115px; }
.leaderboard-explainer { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #d4d2c8; border-radius: var(--radius); background: var(--surface); }
.leaderboard-explainer > div { min-height: 190px; padding: 25px; border-left: 1px solid #dedcd3; }
.leaderboard-explainer > div:first-child { border-left: 0; }
.leaderboard-explainer strong { display: block; margin: 16px 0 5px; font-size: 1.03rem; }
.leaderboard-explainer p { margin: 0; color: var(--muted); font-size: .78rem; }
.leaderboard-factor { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .65rem; font-weight: 900; }
.leaderboard-explainer .leaderboard-explainer-note { grid-column: 1 / -1; padding: 13px 20px; border-top: 1px solid #dedcd3; background: #eeece3; color: #676a62; font-size: .7rem; text-align: center; }
.leaderboard-level-nav { position: sticky; z-index: 8; top: 76px; display: flex; justify-content: center; gap: 6px; margin-block: 35px 20px; padding: 8px; border: 1px solid #d3d1c7; border-radius: 13px; background: rgba(244,242,233,.95); backdrop-filter: blur(12px); }
.leaderboard-level-nav a { padding: 8px 13px; border-radius: 8px; color: var(--muted); font-size: .72rem; font-weight: 850; }
.leaderboard-level-nav a:hover { background: var(--lime); color: var(--ink); }
.leaderboard-sections { display: grid; gap: 75px; }
.leaderboard-level { scroll-margin-top: 145px; }
.leaderboard-level-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #cccac0; }
.leaderboard-level-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }
.leaderboard-level-title { display: flex; align-items: center; gap: 15px; }
.leaderboard-level-title > span { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: var(--ink); color: var(--lime); font-size: 1.2rem; font-weight: 900; }
.leaderboard-level-curator .leaderboard-level-title > span { background: var(--lime); color: var(--ink); }
.leaderboard-level-supporter .leaderboard-level-title > span { background: var(--purple); color: var(--ink); }
.leaderboard-level-scout .leaderboard-level-title > span { background: var(--blue); color: var(--ink); }
.leaderboard-level-explorer .leaderboard-level-title > span { background: var(--surface); color: var(--ink); border: 1px solid #cbc9bf; }
.leaderboard-level-title small { display: block; color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.leaderboard-level-title h2 { margin: 1px 0 0; font-size: 2.2rem; letter-spacing: -.055em; line-height: 1; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.leaderboard-card { position: relative; display: grid; grid-template-columns: 34px 54px minmax(0, 1fr); gap: 14px; padding: 21px; border: 1px solid #d8d6cc; border-radius: var(--radius); background: var(--surface); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.leaderboard-card:hover { transform: translateY(-2px); border-color: #bec0b6; box-shadow: var(--shadow); }
.leaderboard-rank { color: #8b8e85; font-size: .75rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.leaderboard-card:first-child .leaderboard-rank { color: #53621e; }
.leaderboard-avatar { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 1.15rem; font-weight: 900; }
.leaderboard-member { min-width: 0; }
.leaderboard-member-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.leaderboard-member-heading h3 { margin: 0; overflow: hidden; font-size: 1.05rem; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-member-heading h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.leaderboard-member-heading > div > span { display: block; color: var(--muted); font-size: .68rem; }
.leaderboard-member > p { min-height: 40px; margin: 13px 0 15px; color: #62665d; font-size: .76rem; }
.leaderboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 13px; border-top: 1px solid #e2e0d7; }
.leaderboard-stats div { min-width: 0; }
.leaderboard-stats dt { overflow: hidden; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .035em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.leaderboard-stats dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 900; }
.leaderboard-profile-link { display: inline-block; margin-top: 15px; font-size: .7rem; font-weight: 850; }
.leaderboard-profile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.leaderboard-empty { display: flex; align-items: center; gap: 13px; padding: 25px; border: 1px dashed #c9c8bd; border-radius: var(--radius); color: var(--muted); }
.leaderboard-empty span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); }
.leaderboard-empty p { margin: 0; font-size: .8rem; }
.leaderboard-cta { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-top: 80px; padding: clamp(30px, 5vw, 52px); border-radius: 24px; background: var(--lime); }
.leaderboard-cta h2 { margin: 8px 0 4px; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.06em; line-height: 1; }
.leaderboard-cta p { margin: 0; color: #555b40; }

.form-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; padding-block: 90px 120px; }
.form-intro { position: sticky; top: 130px; padding-top: 20px; }
.form-intro h1, .legal-page header h1 { margin: 10px 0 20px; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.07em; line-height: .93; }
.form-intro > p { color: var(--muted); font-size: 1.03rem; }
.feature-list { display: grid; gap: 12px; padding: 0; margin: 30px 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; font-size: .87rem; font-weight: 700; }
.feature-list li::before { content: "✓"; display: grid; flex: 0 0 auto; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--lime); font-size: .72rem; }
.form-card { display: grid; gap: 20px; padding: clamp(25px, 5vw, 45px); border: 1px solid #d3d1c7; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.form-heading { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid #e0ded5; }
.form-heading > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--ink); color: var(--lime); font-weight: 900; }
.form-heading h2, .form-heading p { margin: 0; }
.form-heading h2 { font-size: 1.3rem; }
.form-heading p { color: var(--muted); font-size: .78rem; }
.form-card label, .admin-level-card label { display: grid; gap: 7px; font-size: .76rem; font-weight: 850; }
.field-hint { float: right; color: var(--muted); font-weight: 500; }
.form-card input:not([type="checkbox"]), .form-card select, .form-card textarea, .admin-level-card input:not([type="checkbox"]), .admin-level-card textarea { width: 100%; border: 1px solid #cccac0; border-radius: 11px; outline: none; background: #fbfaf4; }
.form-card input:not([type="checkbox"]), .form-card select, .admin-level-card input:not([type="checkbox"]) { height: 48px; padding: 0 14px; }
.form-card textarea, .admin-level-card textarea { padding: 13px 14px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus, .admin-level-card input:focus, .admin-level-card textarea:focus { border-color: #8c9d52; box-shadow: 0 0 0 3px rgba(217,255,93,.38); }
.input-prefix { display: flex; align-items: center; overflow: hidden; border: 1px solid #cccac0; border-radius: 11px; background: #efede4; }
.input-prefix > span { padding-inline: 14px; color: #74776f; }
.input-prefix input { border: 0 !important; border-radius: 0 !important; }
.check-label { display: flex !important; grid-template-columns: 18px 1fr; align-items: start; }
.check-label input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.check-label a, .form-foot a, .form-row-between a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot { margin: 0; color: var(--muted); font-size: .8rem; text-align: center; }
.form-row-between { display: flex; justify-content: flex-end; font-size: .76rem; }
.notice { padding: 16px 18px; border-left: 3px solid var(--lime-deep); border-radius: 0 10px 10px 0; background: #f0f5df; }
.notice p { margin: 4px 0 0; color: #64685f; font-size: .78rem; }
.auth-center { min-height: 680px; display: grid; place-items: center; padding-block: 70px; }
.auth-card { width: min(520px, 100%); }
.auth-card h1 { margin: 0; font-size: 2.5rem; letter-spacing: -.055em; }
.auth-card > p { margin: -10px 0 8px; color: var(--muted); }

.detail-page { padding-block: 60px 110px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 30px; align-items: start; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 13px; }
.profile-mini { display: flex; align-items: center; gap: 12px; margin-block: 18px 12px; }
.profile-mini div { display: grid; }
.profile-mini a { color: var(--muted); font-size: .75rem; }
.comments-section { padding-top: 55px; }
.comment-form { display: grid; gap: 12px; padding: 24px; border: 1px solid #d9d7cc; border-radius: var(--radius); background: var(--surface); }
.comment-form label { font-size: .8rem; font-weight: 850; }
.comment-form textarea { padding: 14px; border: 1px solid #ceccc2; border-radius: 10px; background: #fbfaf4; resize: vertical; }
.comment-form .button { justify-self: end; }
.comment-list { display: grid; margin-top: 18px; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 13px; padding: 24px 5px; border-bottom: 1px solid #d9d7cc; }
.comment-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 900; }
.comment-head { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .7rem; }
.comment-head a { color: var(--ink); font-weight: 850; }
.comment p { margin: 8px 0 0; font-size: .9rem; }
.empty-comment { padding: 35px; color: var(--muted); text-align: center; }
.join-callout, .verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: 14px; background: var(--lime); }
.join-callout p, .verify-banner p { margin: 0; }

.profile-hero { background: var(--ink); color: #fff; }
.profile-hero-inner { min-height: 290px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.profile-identity { display: flex; align-items: center; gap: 26px; }
.profile-avatar { display: grid; width: 105px; height: 105px; place-items: center; border: 1px solid #51564a; border-radius: 50%; background: #24281f; color: var(--lime); font-size: 2.5rem; font-weight: 900; }
.profile-identity .eyebrow { color: #9ea297; }
.profile-identity h1 { margin: 4px 0; font-size: 3.5rem; letter-spacing: -.06em; line-height: 1; }
.profile-identity p { margin: 0; color: #aeb2a8; }
.profile-level { width: 280px; padding-left: 30px; border-left: 1px solid #41463b; }
.profile-level span, .profile-level small { display: block; color: #aeb2a8; font-size: .74rem; }
.profile-level strong { display: block; margin: 5px 0; color: var(--lime); font-size: 1.55rem; }
.profile-body { padding-block: 50px 110px; }
.profile-owner-actions { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.profile-about-card { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 30px 55px; margin-bottom: 20px; padding: 30px; border: 1px solid #d7d5ca; border-radius: 18px; background: var(--surface); }
.profile-about-card h2 { margin: 5px 0 0; font-size: 1.7rem; letter-spacing: -.04em; }
.profile-about-card > p { margin: 0; color: #595d54; white-space: normal; }
.profile-social-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-social-links a { padding: 7px 11px; border: 1px solid #d3d1c7; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.profile-social-links a:hover { border-color: var(--ink); background: var(--lime); }
.verify-banner { margin-bottom: 22px; }
.verify-banner strong { font-size: 1.1rem; }
.verify-banner p { font-size: .82rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-cards > div { padding: 22px; border: 1px solid #d7d5ca; border-radius: 14px; background: var(--surface); }
.stat-cards span, .stat-cards strong { display: block; }
.stat-cards span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.stat-cards strong { margin-top: 5px; font-size: 1.7rem; }
.progress-card { margin-block: 20px 65px; padding: 30px; border-radius: 18px; background: #e8f7ae; }
.progress-number { font-size: 2rem; }
.progress-track { overflow: hidden; height: 9px; border-radius: 999px; background: rgba(17,19,15,.14); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.criteria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-block: 20px; }
.criteria-grid div { padding: 13px; border-radius: 10px; background: rgba(255,255,255,.55); }
.criteria-grid span, .criteria-grid strong { display: block; }
.criteria-grid span { font-size: .67rem; }
.criteria-grid strong { font-size: .9rem; }

.profile-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.legend-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--legend-accent, var(--lime)); border-radius: 999px; background: #fff; color: var(--ink); font-size: .66rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.profile-tagline { max-width: 650px; margin: 10px 0 7px !important; color: #fff !important; font-size: 1.03rem; font-weight: 700; }
.legend-profile {
    --legend-bg: #f4f2e9;
    --legend-card: #fffdf6;
    --legend-text: #11130f;
    --legend-muted: #686c62;
    --legend-hero: #11130f;
    color: var(--legend-text);
    background: var(--legend-bg);
}
.legend-theme-midnight { --legend-bg: #111520; --legend-card: #1c2230; --legend-text: #f4f6fb; --legend-muted: #adb5c4; --legend-hero: #080b12; }
.legend-theme-sunset { --legend-bg: #fff0e6; --legend-card: #fffaf5; --legend-text: #321810; --legend-muted: #795c51; --legend-hero: #4b1f1a; }
.legend-theme-ocean { --legend-bg: #eaf7f7; --legend-card: #f9ffff; --legend-text: #102c31; --legend-muted: #557176; --legend-hero: #0e3740; }
.legend-theme-lavender { --legend-bg: #f2efff; --legend-card: #fdfcff; --legend-text: #26203c; --legend-muted: #6c6680; --legend-hero: #29213f; }
.legend-profile .profile-hero { background: var(--legend-hero); }
.legend-profile .profile-avatar { border-color: var(--legend-accent); color: var(--legend-accent); }
.legend-profile .profile-level strong { color: var(--legend-accent); }
.legend-profile .profile-body { color: var(--legend-text); }
.legend-profile .profile-about-card, .legend-profile .stat-cards > div, .legend-profile .link-card, .legend-profile .empty-state { border-color: color-mix(in srgb, var(--legend-text) 17%, transparent); background: var(--legend-card); }
.legend-profile .profile-about-card > p, .legend-profile .profile-social-links a, .legend-profile .stat-cards span { color: var(--legend-muted); }
.legend-profile .profile-social-links a { border-color: color-mix(in srgb, var(--legend-text) 22%, transparent); }
.legend-profile .profile-social-links a:hover { border-color: var(--legend-accent); background: var(--legend-accent); color: #11130f; }
.legend-link-hub { margin: 20px 0; padding: clamp(24px, 5vw, 48px); border: 1px solid color-mix(in srgb, var(--legend-text) 17%, transparent); border-radius: 25px; background: var(--legend-card); box-shadow: 0 24px 70px rgba(18, 20, 15, .08); }
.legend-link-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.legend-link-heading h2 { margin: 6px 0 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.06em; line-height: 1; }
.legend-qr { position: relative; z-index: 3; }
.legend-qr summary { padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--legend-text) 24%, transparent); border-radius: 999px; font-size: .72rem; font-weight: 850; list-style: none; cursor: pointer; }
.legend-qr summary::-webkit-details-marker { display: none; }
.legend-qr[open] summary { border-color: var(--legend-accent); }
.legend-qr-popover { position: absolute; top: calc(100% + 10px); right: 0; display: grid; gap: 8px; width: 250px; padding: 14px; border: 1px solid color-mix(in srgb, var(--legend-text) 20%, transparent); border-radius: 15px; background: var(--legend-card); box-shadow: var(--shadow); }
.legend-qr-popover img { width: 220px; height: 220px; border-radius: 9px; background: #fff; }
.legend-qr-popover a { font-size: .7rem; font-weight: 850; text-align: center; }
.legend-profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.legend-profile-link { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; border: 1px solid color-mix(in srgb, var(--legend-text) 19%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--legend-card) 94%, var(--legend-accent)); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.legend-profile-link:hover { transform: translateY(-2px); border-color: var(--legend-accent); box-shadow: 0 12px 30px rgba(12, 16, 10, .1); }
.legend-profile-link.is-featured { grid-column: 1 / -1; min-height: 112px; border-color: var(--legend-accent); box-shadow: inset 6px 0 0 var(--legend-accent); }
.legend-profile-link-copy { display: grid; min-width: 0; }
.legend-profile-link-copy small { margin-bottom: 3px; color: var(--legend-muted); font-size: .61rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.legend-profile-link-copy strong { overflow: hidden; font-size: 1.03rem; text-overflow: ellipsis; white-space: nowrap; }
.legend-profile-link-copy > span { overflow: hidden; margin-top: 3px; color: var(--legend-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.legend-link-arrow { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--legend-text); color: var(--legend-card); font-weight: 900; }
.legend-empty-links { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border: 1px dashed color-mix(in srgb, var(--legend-text) 25%, transparent); border-radius: 14px; }
.legend-empty-links p { margin: 0; color: var(--legend-muted); }
.legend-analytics-summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 20px; padding: 20px; border: 1px solid color-mix(in srgb, var(--legend-text) 17%, transparent); border-radius: 17px; background: var(--legend-card); }
.legend-analytics-summary div { padding-right: 15px; border-right: 1px solid color-mix(in srgb, var(--legend-text) 14%, transparent); }
.legend-analytics-summary span, .legend-analytics-summary strong { display: block; }
.legend-analytics-summary span { color: var(--legend-muted); font-size: .66rem; text-transform: uppercase; }
.legend-analytics-summary strong { font-size: 1.35rem; }
.legend-analytics-summary a { font-size: .75rem; font-weight: 850; }

.profile-editor-page { padding-block: 65px 110px; }
.profile-editor-header { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 35px; }
.profile-editor-header h1 { max-width: 800px; margin: 7px 0 10px; font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -.075em; line-height: .92; }
.profile-editor-header p { max-width: 700px; margin: 0; color: var(--muted); }
.profile-editor-tabs { position: sticky; z-index: 8; top: 90px; display: flex; gap: 5px; width: fit-content; margin-bottom: 20px; padding: 5px; border: 1px solid #d1d0c6; border-radius: 999px; background: rgba(244,242,233,.94); backdrop-filter: blur(12px); }
.profile-editor-tabs a { padding: 8px 14px; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.profile-editor-tabs a:hover { background: var(--lime); }
.profile-editor-form { display: grid; gap: 18px; }
.profile-editor-section { scroll-margin-top: 150px; padding: clamp(24px, 5vw, 42px); border: 1px solid #d3d1c7; border-radius: 22px; background: var(--surface); }
.profile-editor-section-head { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e0ded5; }
.profile-editor-section-head > span { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--ink); color: var(--lime); font-size: .72rem; font-weight: 900; }
.profile-editor-section-head h2, .profile-editor-section-head p { margin: 0; }
.profile-editor-section-head h2 { font-size: 1.45rem; }
.profile-editor-section-head p { color: var(--muted); font-size: .77rem; }
.profile-editor-fields, .profile-appearance-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-editor-fields label, .profile-appearance-fields label, .profile-link-fields label { display: grid; gap: 7px; font-size: .76rem; font-weight: 850; }
.profile-editor-form input:not([type="checkbox"]):not([type="radio"]), .profile-editor-form select, .profile-editor-form textarea { width: 100%; border: 1px solid #cccac0; border-radius: 11px; outline: none; background: #fbfaf4; }
.profile-editor-form input:not([type="checkbox"]):not([type="radio"]), .profile-editor-form select { height: 48px; padding: 0 14px; }
.profile-editor-form textarea { padding: 13px 14px; resize: vertical; }
.profile-editor-form input:focus, .profile-editor-form select:focus, .profile-editor-form textarea:focus { border-color: #8c9d52; box-shadow: 0 0 0 3px rgba(217,255,93,.38); }
.editor-field-wide { grid-column: 1 / -1; }
.legend-upgrade-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: clamp(28px, 5vw, 48px); border-radius: 22px; background: var(--lime); }
.legend-upgrade-card h2 { max-width: 700px; margin: 14px 0 7px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.055em; line-height: 1; }
.legend-upgrade-card p { max-width: 760px; margin: 0; }
.profile-link-editor-list { display: grid; gap: 11px; }
.profile-no-featured { width: fit-content; margin-bottom: 13px; }
.profile-link-editor-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid #d7d5ca; border-radius: 15px; background: #f7f5ed; }
.profile-link-editor-row.is-dragging { opacity: .45; border-color: var(--ink); }
.profile-link-drag { align-self: stretch; padding: 0; border: 0; border-radius: 8px; background: #e5e3da; color: #777a72; cursor: grab; font-weight: 900; }
.profile-link-drag:active { cursor: grabbing; }
.profile-link-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.profile-link-options { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 3px; }
.profile-link-options .check-label { align-items: center; grid-template-columns: 18px auto; margin-right: 5px; }
.profile-link-options input[type="checkbox"], .profile-link-options input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }
.profile-link-clicks { margin-left: auto; color: var(--muted); font-size: .7rem; }
.profile-link-move, .profile-link-remove { min-height: 32px; padding: 0 10px; border: 1px solid #c8c7bd; border-radius: 8px; background: #fff; font-size: .68rem; font-weight: 850; }
.profile-link-remove { color: #a03929; }
.profile-link-add { margin-top: 15px; }
.profile-editor-note { margin: 12px 0 0; color: var(--muted); font-size: .74rem; }
.profile-editor-note code { padding: 2px 5px; border-radius: 5px; background: #e8e6dd; color: var(--ink); }
.accent-picker { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.profile-editor-form .accent-picker input[type="color"] { width: 65px; flex: 0 0 auto; padding: 4px; }
.accent-picker span { color: var(--muted); font-size: .72rem; font-weight: 500; }
.theme-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px; }
.theme-swatch { min-height: 75px; display: flex; align-items: end; padding: 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 11px; font-size: .66rem; font-weight: 850; }
.theme-swatch-classic { background: #f4f2e9; }
.theme-swatch-midnight { background: #111520; color: #fff; }
.theme-swatch-sunset { background: #fff0e6; color: #321810; }
.theme-swatch-ocean { background: #eaf7f7; color: #102c31; }
.theme-swatch-lavender { background: #f2efff; color: #26203c; }
.legend-editor-analytics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.legend-editor-analytics > div { padding: 21px; border: 1px solid #d7d5ca; border-radius: 13px; background: #f7f5ed; }
.legend-editor-analytics span, .legend-editor-analytics strong { display: block; }
.legend-editor-analytics span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.legend-editor-analytics strong { margin-top: 5px; font-size: 1.8rem; }
.profile-link-performance { display: grid; margin-top: 15px; border: 1px solid #d7d5ca; border-radius: 13px; }
.profile-link-performance div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 15px; border-top: 1px solid #e1dfd6; font-size: .76rem; }
.profile-link-performance div:first-child { border-top: 0; }
.profile-link-performance span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-editor-save { position: sticky; z-index: 7; bottom: 15px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 13px 18px; border: 1px solid #d1cfc5; border-radius: 16px; background: rgba(255,253,246,.94); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.profile-editor-save a { color: var(--muted); font-size: .78rem; font-weight: 800; }

.levels-hero { padding-block: 90px 55px; text-align: center; }
.levels-hero h1 { margin-inline: auto; font-size: clamp(3rem, 6vw, 6rem); }
.levels-hero > p { max-width: 700px; margin-inline: auto; color: var(--muted); font-size: 1.05rem; }
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 60px; }
.level-card { display: flex; min-height: 420px; flex-direction: column; padding: 28px; border: 1px solid #d6d4ca; border-radius: var(--radius); background: var(--surface); }
.level-paid { border-color: var(--ink); background: var(--lime); transform: rotate(-.5deg); }
.level-top { display: flex; justify-content: space-between; }
.level-rank, .paid-label { font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.paid-label { padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.level-card h2 { margin: 35px 0 5px; font-size: 2rem; letter-spacing: -.05em; }
.level-card > p { min-height: 72px; color: #64675e; font-size: .86rem; }
.level-requirements { display: grid; gap: 0; padding: 0; margin: auto 0 0; list-style: none; }
.level-requirements li { display: flex; justify-content: space-between; padding-block: 11px; border-top: 1px solid #dfddd4; font-size: .75rem; }
.level-requirements span { color: var(--muted); }
.price { display: grid; margin: auto 0 20px; }
.price strong { font-size: 2.5rem; letter-spacing: -.06em; }
.price span { font-size: .75rem; }
.legend-benefits { display: grid; gap: 7px; padding: 0; margin: 0 0 20px; list-style: none; }
.legend-benefits li { display: flex; gap: 8px; font-size: .74rem; font-weight: 750; }
.legend-benefits li::before { content: "✓"; font-weight: 900; }
.level-note { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 110px; padding: 42px; border-radius: 20px; background: var(--ink); color: #fff; }
.level-note h2 { margin: 5px 0 0; font-size: 2rem; letter-spacing: -.04em; }
.level-note p { margin: 0; color: #bec1b8; }

.legal-page { padding-block: 90px 120px; }
.legal-page header { max-width: 850px; margin-bottom: 70px; }
.legal-page header > p { color: var(--muted); font-size: 1.05rem; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; }
.legal-nav { position: sticky; top: 110px; align-self: start; display: grid; border-left: 1px solid #c9c8bd; }
.legal-nav a { padding: 8px 18px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.legal-nav a:hover { color: var(--ink); }
.legal-content { display: grid; gap: 0; }
.legal-content section { display: grid; grid-template-columns: 55px 1fr; gap: 25px; padding: 35px 0; border-top: 1px solid #d4d2c8; }
.legal-content section > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .72rem; font-weight: 900; }
.legal-content h2 { margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -.035em; }
.legal-content p { color: #5f635a; }
.rules-guide { scroll-margin-top: 100px; margin-top: 95px; padding-top: 75px; border-top: 1px solid #c9c8bd; }
.rules-guide-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: end; gap: 60px; margin-bottom: 34px; }
.rules-guide-heading h2 { max-width: 720px; margin: 7px 0 0; font-size: clamp(2.35rem, 5vw, 4.3rem); letter-spacing: -.065em; line-height: .94; }
.rules-guide-heading > p { margin: 0; color: var(--muted); font-size: .92rem; }
.rules-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rules-steps article { min-height: 245px; padding: 26px; border: 1px solid #d3d1c7; border-radius: var(--radius); background: var(--surface); }
.rules-steps article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .68rem; font-weight: 900; }
.rules-steps h3 { margin: 38px 0 8px; font-size: 1.3rem; letter-spacing: -.035em; }
.rules-steps p { margin: 0; color: var(--muted); font-size: .82rem; }
.rules-actions { display: flex; gap: 10px; margin-top: 24px; }
.rules-level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.rules-level-card { display: flex; min-height: 390px; flex-direction: column; padding: 25px; border: 1px solid #d3d1c7; border-radius: var(--radius); background: var(--surface); }
.rules-level-card.is-supporter { border-color: var(--ink); background: var(--lime); }
.rules-level-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .64rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.rules-level-top strong { padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: .6rem; }
.rules-level-card h3 { margin: 28px 0 5px; font-size: 1.8rem; letter-spacing: -.05em; }
.rules-level-card > p { margin: 0; color: #62655c; font-size: .8rem; }
.rules-level-card .rules-level-capability { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(17,19,15,.14); color: var(--ink); font-weight: 700; }
.rules-level-requirements { display: grid; padding: 0; margin: auto 0 0; list-style: none; }
.rules-level-requirements li { display: flex; justify-content: space-between; gap: 14px; padding-block: 8px; border-top: 1px solid #e0ded4; font-size: .7rem; }
.rules-level-requirements span { color: var(--muted); }
.rules-level-start { margin-top: auto; padding: 13px; border-radius: 10px; background: #f0eee5; font-size: .73rem; font-weight: 850; text-align: center; }
.rules-level-price { display: grid; margin-top: auto; }
.rules-level-price strong { font-size: 2.2rem; letter-spacing: -.055em; }
.rules-level-price span { font-size: .7rem; }
.rules-verified-panel { padding: 45px; border-radius: 24px; background: var(--ink); color: #fff; }
.rules-verified-panel .eyebrow { color: var(--lime); }
.rules-verified-panel .rules-guide-heading > p { color: #b7bbb1; }
.rules-verified-conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid #3c4037; border-radius: 16px; background: #3c4037; }
.rules-verified-conditions article { min-height: 210px; padding: 28px; background: #1a1d17; }
.rules-verified-conditions strong, .rules-verified-conditions span { display: block; }
.rules-verified-conditions strong { color: var(--lime); font-size: 2.1rem; letter-spacing: -.05em; }
.rules-verified-conditions span { color: #fff; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.rules-verified-conditions p { margin: 35px 0 0; color: #aeb2a8; font-size: .78rem; }
.rules-verified-result { display: flex; align-items: flex-start; gap: 25px; margin-top: 28px; }
.rules-verified-result .community-verified-badge { flex: 0 0 auto; margin-top: 3px; }
.rules-verified-result p { margin: 0; color: #c4c7bf; font-size: .82rem; }
.rules-verified-result code { padding: 2px 5px; border-radius: 5px; background: #2a2e26; color: #fff; }
.rules-faq-list { border-top: 1px solid #c9c8bd; }
.rules-faq-list details { border-bottom: 1px solid #c9c8bd; }
.rules-faq-list summary { position: relative; padding: 23px 55px 23px 0; font-size: 1.05rem; font-weight: 850; list-style: none; cursor: pointer; }
.rules-faq-list summary::-webkit-details-marker { display: none; }
.rules-faq-list summary::after { position: absolute; top: 20px; right: 7px; content: "+"; color: var(--muted); font-size: 1.45rem; font-weight: 500; line-height: 1; }
.rules-faq-list details[open] summary::after { content: "−"; }
.rules-faq-list details p { max-width: 850px; margin: -5px 55px 24px 0; color: var(--muted); font-size: .88rem; }

.success-page, .error-page { min-height: 690px; display: flex; max-width: 730px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-mark { display: grid; width: 80px; height: 80px; place-items: center; margin-bottom: 25px; border-radius: 50%; background: var(--lime); font-size: 2rem; font-weight: 900; }
.success-page h1, .error-page h1 { margin: 10px 0; font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.07em; line-height: .95; }
.success-page > p, .error-page > p { max-width: 620px; color: var(--muted); }
.success-page > div:last-child { display: flex; gap: 10px; margin-top: 20px; }
.error-page > span { color: var(--coral); font-size: 1rem; font-weight: 900; letter-spacing: .15em; }

.admin-page { padding-block: 65px 110px; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.admin-header h1 { margin: 5px 0; font-size: 3.5rem; letter-spacing: -.06em; }
.admin-header p { margin: 0; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-block: 35px; }
.admin-stats-six { grid-template-columns: repeat(6, 1fr); }
.admin-stats div { padding: 18px; border: 1px solid #d5d3c9; border-radius: 12px; background: var(--surface); }
.admin-stats .needs-action { border-color: var(--coral); background: #fff0ed; }
.admin-stats span, .admin-stats strong { display: block; }
.admin-stats span { color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-stats strong { font-size: 1.55rem; }
.admin-nav { position: sticky; z-index: 10; top: 76px; display: flex; gap: 6px; padding: 8px; border: 1px solid #d3d1c7; border-radius: 12px; background: rgba(244,242,233,.94); backdrop-filter: blur(12px); }
.admin-nav a { padding: 7px 12px; border-radius: 8px; font-size: .74rem; font-weight: 850; }
.admin-nav a:hover { background: var(--lime); }
.admin-section { padding-top: 70px; scroll-margin-top: 120px; }
.admin-user-filters { display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(135px, .7fr)) auto; gap: 9px; align-items: end; margin-bottom: 14px; padding: 16px; border: 1px solid #d4d2c8; border-radius: 14px; background: var(--surface); }
.admin-user-filters label { display: grid; gap: 5px; color: var(--muted); font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.admin-user-filters input, .admin-user-filters select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #c8c7bd; border-radius: 8px; background: #fff; font-size: .75rem; }
.admin-filter-actions { display: flex; gap: 7px; align-items: center; }
.admin-filter-actions button, .admin-filter-actions a { display: inline-flex; height: 39px; align-items: center; justify-content: center; padding-inline: 13px; border: 1px solid var(--ink); border-radius: 8px; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.admin-filter-actions button { background: var(--ink); color: #fff; }
.admin-filter-actions a { background: transparent; }
.table-wrap { overflow-x: auto; border: 1px solid #d4d2c8; border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .75rem; }
th { padding: 13px 14px; background: #ebe9e0; color: #666a61; font-size: .64rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
td { padding: 14px; border-top: 1px solid #e2e0d7; vertical-align: top; }
td > a { font-weight: 800; }
td small { display: block; color: var(--muted); }
.status { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #e4e3db; font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.status-published, .status-active, .status-paid { background: #dff3a6; }
.status-pending { background: #fff0b3; }
.status-hidden, .status-suspended, .status-failed { background: #ffd9d2; }
.status-confirmed { background: #ffd9d2; }
.status-dismissed { background: #e4e3db; }
.table-action { display: flex; gap: 5px; }
.table-action select, .table-action button { height: 31px; border: 1px solid #c8c7bd; border-radius: 7px; background: #fff; font-size: .68rem; }
.table-action button { padding-inline: 9px; background: var(--ink); color: #fff; }
.admin-actions, .admin-user-actions { display: grid; gap: 6px; }
.admin-actions { grid-template-columns: auto auto auto; align-items: start; }
.admin-user-actions .table-action { flex-wrap: wrap; }
.admin-edit-link { display: inline-flex; height: 31px; align-items: center; justify-content: center; padding-inline: 9px; border: 1px solid #c8c7bd; border-radius: 7px; background: var(--lime); color: var(--ink); font-size: .68rem; font-weight: 850; }
.admin-edit-link:hover { border-color: var(--ink); }
.table-action .button-danger { border-color: #c94732; background: #c94732; color: #fff; }
.table-action .button-danger:hover { background: #a82f20; }
.spam-decision-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.spam-count { display: inline-grid; min-width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 900; }
.admin-empty-row { padding: 35px; color: var(--muted); text-align: center; }
.admin-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.admin-pagination a { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding-inline: 11px; border: 1px solid #cbc9bf; border-radius: 8px; background: var(--surface); font-size: .72rem; font-weight: 850; }
.admin-pagination a:hover, .admin-pagination a.is-active { border-color: var(--ink); background: var(--lime); }
.comment-cell { min-width: 230px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .66rem; }
.admin-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-level-card { display: grid; gap: 14px; padding: 24px; border: 1px solid #d4d2c8; border-radius: 14px; background: var(--surface); }
.level-edit-head { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #dedcd3; }
.level-edit-head strong { text-transform: uppercase; }
.level-edit-head span { color: var(--muted); font-size: .72rem; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }

.site-footer { border-top: 1px solid #30342c; background: var(--ink); color: #fff; }
.footer-inner { min-height: 190px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 60px; }
.footer-inner p { margin: 4px 0; color: #9ea299; font-size: .78rem; }
.footer-links { display: grid; gap: 7px; font-size: .76rem; }
.footer-inner small { color: #80847a; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 76px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid #3c4037; border-radius: 14px; background: var(--ink); box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .site-nav > a:not(.button), .nav-signout { padding: 9px; }
    .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 75px; }
    .hero-orbit { min-height: 360px; }
    .orbit-ring { inset: 20px 14%; }
    .signal-grid { grid-template-columns: repeat(3, 1fr); padding-block: 25px; }
    .signal-grid p { grid-column: 1 / -1; }
    .feed-layout, .detail-grid { grid-template-columns: 1fr; }
    .leaderboard-grid { grid-template-columns: 1fr; }
    .feed-aside, .detail-aside { position: static; grid-template-columns: repeat(2, 1fr); }
    .form-page { grid-template-columns: 1fr; gap: 40px; }
    .form-intro { position: static; }
    .levels-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards, .criteria-grid { grid-template-columns: repeat(2, 1fr); }
    .legend-profile-links { grid-template-columns: 1fr; }
    .legend-profile-link.is-featured { grid-column: 1; }
    .legend-analytics-summary { grid-template-columns: repeat(3, 1fr); }
    .legend-analytics-summary a { grid-column: 1 / -1; }
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
    .admin-user-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-search-field, .admin-filter-actions { grid-column: 1 / -1; }
    .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 35px; }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 24px, 1180px); }
    .header-inner { min-height: 68px; }
    .site-nav { top: 68px; right: 12px; left: 12px; }
    .hero { gap: 35px; padding-block: 55px; }
    .hero h1 { font-size: clamp(3.2rem, 18vw, 5rem); }
    .hero-actions, .section-heading, .profile-hero-inner, .verify-banner, .admin-header { align-items: stretch; flex-direction: column; }
    .hero-orbit { min-height: 320px; transform: scale(.9); }
    .orbit-card { width: 150px; }
    .signal-grid { grid-template-columns: 1fr 1fr; }
    .signal-grid > div { border-right: 0; }
    .signal-grid p { grid-column: 1 / -1; }
    .feed-section { padding-block: 60px 80px; }
    .sort-tabs { width: 100%; overflow-x: auto; border-radius: 12px; }
    .sort-tabs a { flex: 0 0 auto; }
    .link-card { grid-template-columns: 52px minmax(0, 1fr); }
    .link-content { padding: 17px 16px; }
    .link-content h2 { font-size: 1.04rem; }
    .comments-link { width: 100%; margin-left: 0; }
    .feed-aside, .detail-aside { grid-template-columns: 1fr; }
    .archive-callout, .archive-hero-inner { align-items: stretch; flex-direction: column; }
    .archive-callout .button { width: 100%; }
    .archive-hero-inner { min-height: auto; padding-block: 60px; }
    .archive-count { min-width: 0; }
    .archive-toolbar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .archive-pagination { gap: 5px; }
    .archive-pagination a { min-width: 36px; height: 36px; padding-inline: 10px; }
    .archive-pagination .pagination-direction { min-width: 92px; }
    .pagination-ellipsis { width: 20px; height: 36px; }
    .community-hero-inner, .leaderboard-level-heading, .leaderboard-cta { align-items: stretch; flex-direction: column; }
    .community-hero-inner { min-height: auto; padding-block: 60px; }
    .leaderboard-principle { flex-basis: auto; }
    .leaderboard-explainer { grid-template-columns: 1fr; }
    .leaderboard-explainer > div { min-height: 0; border-top: 1px solid #dedcd3; border-left: 0; }
    .leaderboard-explainer > div:first-child { border-top: 0; }
    .leaderboard-level-nav { top: 68px; justify-content: flex-start; overflow-x: auto; }
    .leaderboard-level-nav a { flex: 0 0 auto; }
    .leaderboard-level-heading > p { max-width: none; text-align: left; }
    .leaderboard-card { grid-template-columns: 28px 46px minmax(0, 1fr); gap: 10px; padding: 16px; }
    .leaderboard-avatar { width: 46px; height: 46px; }
    .leaderboard-member-heading { align-items: flex-start; flex-direction: column; }
    .leaderboard-member > p { min-height: 0; }
    .leaderboard-stats { gap: 5px; }
    .leaderboard-stats dt { white-space: normal; }
    .leaderboard-cta .button { width: 100%; }
    .form-page { padding-block: 55px 80px; }
    .form-card { padding: 22px; }
    .profile-hero-inner { padding-block: 45px; }
    .profile-identity { align-items: flex-start; flex-direction: column; }
    .profile-identity h1 { font-size: 2.65rem; }
    .profile-level { width: 100%; padding: 20px 0 0; border-top: 1px solid #41463b; border-left: 0; }
    .profile-about-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .profile-social-links { grid-column: 1; }
    .legend-link-heading, .legend-empty-links, .profile-editor-header, .legend-upgrade-card { align-items: stretch; flex-direction: column; }
    .legend-qr-popover { right: auto; left: 0; }
    .legend-analytics-summary, .profile-editor-fields, .profile-appearance-fields, .profile-link-fields, .legend-editor-analytics, .theme-swatches { grid-template-columns: 1fr; }
    .legend-analytics-summary div { padding-right: 0; padding-bottom: 10px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--legend-text) 14%, transparent); }
    .editor-field-wide { grid-column: 1; }
    .profile-editor-tabs { top: 78px; width: 100%; overflow-x: auto; border-radius: 12px; }
    .profile-editor-tabs a { flex: 0 0 auto; }
    .profile-link-editor-row { grid-template-columns: 1fr; }
    .profile-link-drag { display: none; }
    .profile-link-options { grid-column: 1; }
    .profile-link-clicks { width: 100%; margin-left: 0; }
    .theme-swatches { grid-template-columns: repeat(2, 1fr); }
    .levels-grid, .stat-cards, .criteria-grid, .level-note, .admin-levels, .admin-stats { grid-template-columns: 1fr; }
    .level-paid { transform: none; }
    .legal-grid { grid-template-columns: 1fr; gap: 25px; }
    .legal-nav { position: static; display: flex; overflow-x: auto; border-left: 0; }
    .legal-nav a { flex: 0 0 auto; }
    .legal-content section { grid-template-columns: 42px 1fr; gap: 12px; }
    .rules-guide { margin-top: 70px; padding-top: 55px; }
    .rules-guide-heading { grid-template-columns: 1fr; gap: 17px; }
    .rules-steps, .rules-verified-conditions { grid-template-columns: 1fr; }
    .rules-steps article, .rules-verified-conditions article { min-height: 0; }
    .rules-actions, .rules-verified-result { align-items: stretch; flex-direction: column; }
    .rules-actions .button { width: 100%; }
    .rules-level-grid { grid-template-columns: 1fr; }
    .rules-level-card { min-height: 0; }
    .rules-level-requirements, .rules-level-start, .rules-level-price { margin-top: 28px; }
    .rules-verified-panel { padding: 25px 20px; }
    .admin-header h1 { font-size: 2.55rem; }
    .admin-user-filters { grid-template-columns: 1fr; }
    .admin-search-field, .admin-filter-actions { grid-column: 1; }
    .admin-nav { top: 68px; overflow-x: auto; }
    .field-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
