:root {
  color-scheme: light;
  --paper: #fcf7ef;
  --white: #fffdf8;
  --ink: #32223d;
  --muted: #6b576d;
  --line: #dfd2ca;
  --plum: #432d55;
  --lavender: #ede0ee;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.55 system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #754395; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 71px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font: 28px/1 var(--serif); letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--plum); }
.brand-mark i { width: 19px; height: 19px; border: 1px solid #e6c783; border-radius: 50%; position: relative; }
.brand-mark i::before, .brand-mark i::after { content: ""; position: absolute; border-radius: 50%; }
.brand-mark i::before { inset: 4px; border: 1px solid #e6c783; }
.brand-mark i::after { inset: 7px; background: #e6c783; }
.header-inner nav a { font-size: 14px; font-weight: 700; color: #68477c; }
.wallet { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border: 1px solid transparent; border-radius: 24px; background: var(--plum); color: #fff8ee; font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-inner .wallet { margin-left: auto; }
.wallet:hover { background: #5c4171; }
.wallet-icon { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.wallet-icon::after { content: ""; width: 6px; height: 4px; border: 1px solid currentColor; background: var(--plum); border-radius: 2px; position: absolute; right: -3px; top: 2px; }
.hero { min-height: 258px; margin-top: 25px; background: var(--lavender); border-radius: 11px; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 1; padding: 32px 36px; }
.hero-label { color: #66466e; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.hero h1 { margin: 9px 0 10px; font: 400 clamp(43px, 6vw, 78px)/1.02 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: #67426c; }
.hero p { color: #55445c; margin: 0; max-width: 560px; }
.hero-link { display: inline-flex; align-items: center; gap: 11px; margin-top: 14px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.orbit { position: absolute; inset: 0 0 0 68%; display: grid; place-items: center; }
.orbit-map { width: min(84%, 210px); aspect-ratio: 1; position: relative; }
.orbit-map i, .orbit-map b { position: absolute; border-radius: 50%; }
.orbit-map i { border: 1px solid #ad89b0; inset: 1%; }
.orbit-map i:nth-child(2) { inset: 10%; }
.orbit-map i:nth-child(3) { inset: 20%; }
.orbit-map i:nth-child(4) { inset: 30%; border-bottom: 2px solid #704679; transform: rotate(31deg); }
.orbit-map b { width: 22px; aspect-ratio: 1; background: #a972a6; top: 10%; left: 66%; }
.orbit-map b:nth-of-type(2) { width: 28px; top: 58%; left: 81%; }
.orbit-map b:nth-of-type(3) { width: 26px; top: 58%; left: 10%; background: #6e4d77; }
.orbit-map b:nth-of-type(4) { width: 34%; top: 33%; left: 33%; background: #53365d; }
.intro { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr); gap: 23px; padding: 23px 0; border-bottom: 1px solid var(--line); margin-top: 4px; }
.intro h2, .directory h2, .detail h2, dialog h2 { margin: 0; font: 400 33px/1.13 var(--serif); letter-spacing: -.6px; }
.intro h2 { font-size: 26px; }
.intro p { margin: 0 0 8px; font-size: 14px; max-width: 670px; }
.intro .risk { margin-bottom: 0; color: var(--muted); }
.directory { padding-block: 26px 52px; scroll-margin-top: 14px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.directory-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 9px; }
.search, .category { background: var(--white); border: 1px solid var(--line); border-radius: 24px; position: relative; }
.search input, .category select { min-height: 42px; background: transparent; border: 0; border-radius: 24px; padding: 9px 13px; font-size: 14px; }
.search input { width: 229px; padding-left: 35px; }
.category select { max-width: 190px; }
.search-icon { position: absolute; left: 13px; top: 13px; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; left: 9px; top: 9px; width: 6px; height: 1.5px; background: var(--muted); transform: rotate(45deg); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; flex-direction: column; align-items: start; min-width: 0; }
.project-banner { width: 100%; display: flex; align-items: center; gap: 12px; background: #f1e9fa; color: #51355c; border-radius: 9px; padding: 11px; font-size: 13px; font-weight: 750; }
.avatar { width: 41px; height: 41px; flex: 0 0 41px; display: grid; place-items: center; border-radius: 50%; background: #ded3f0; font-weight: 800; }
.project:nth-child(3n+2) .project-banner { background: #f9ede7; color: #74493e; }
.project:nth-child(3n+2) .avatar { background: #e7cebf; }
.project:nth-child(3n+3) .project-banner { background: #eaf0e9; color: #416252; }
.project:nth-child(3n+3) .avatar { background: #d6dbd5; }
.project-banner .arrow { margin-left: auto; font-size: 19px; }
.project h3 { margin: 11px 0 0; font: 400 28px/1.12 var(--serif); overflow-wrap: anywhere; }
.ticker-category { color: var(--muted); font-size: 13px; margin: 4px 0 7px; }
.status { display: inline-block; padding: 2px 9px; border-radius: 12px; background: #f6ebcc; color: #654917; font-size: 12px; font-weight: 700; white-space: nowrap; }
.project-links { display: flex; flex-wrap: wrap; gap: 7px 13px; width: 100%; border-top: 1px solid #eae0d7; margin-top: 13px; padding-top: 9px; color: #53365d; }
.project-links a, .project-links span { font-size: 12px; font-weight: 700; }
.project-links span { color: #746a72; }
.empty { grid-column: 1/-1; border: 1px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); }
.more, .wallet-choice { border: 1px solid var(--line); border-radius: 20px; padding: 9px 16px; background: var(--white); font-size: 14px; font-weight: 700; }
.more { display: block; margin: 22px auto 0; }
.more:hover, .wallet-choice:hover { background: #f0e5f1; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 17px; }
.footer-inner>span { font-weight: 750; letter-spacing: .025em; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-inner a { text-decoration: underline; text-underline-offset: 3px; }
.detail { padding-block: 28px 50px; }
.back, .detail a:not(.wallet) { text-decoration: underline; text-underline-offset: 3px; }
.detail-hero { border-radius: 13px; background: var(--lavender); margin-top: 16px; padding: 26px 30px; }
.detail h1 { margin: 8px 0 10px; font: 400 clamp(43px, 7vw, 69px)/1.05 var(--serif); letter-spacing: -1.8px; overflow-wrap: anywhere; }
.detail-meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px 27px; }
.detail-meta div { display: flex; align-items: center; gap: 7px; }
.detail-meta dt { color: var(--muted); font-size: 13px; }
.detail-meta dd { margin: 0; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; margin-top: 16px; }
.detail-panel { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.detail-panel h2 { font-size: 28px; }
.detail-panel p { margin-block: 10px 0; }
.detail-panel .wallet { margin-top: 13px; }
.detail-panel ul { padding-left: 20px; margin-bottom: 0; }
.detail-panel li + li { margin-top: 7px; }
.detail-panel li span, .detail-note { color: var(--muted); font-size: 14px; }
.detail-note { margin: 16px 0 0; }
.policy { max-width: 770px; }
.policy h2 { font-size: 25px; margin-top: 23px; }
dialog { width: min(440px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 14px; padding: 23px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #311e406e; }
dialog h2 { font-size: 27px; margin-right: 34px; }
dialog p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.close { float: right; border: 0; background: #f0e5f1; border-radius: 50%; width: 31px; height: 31px; padding: 0; font-size: 22px; line-height: 28px; }
.wallet-choice { display: block; width: 100%; text-align: left; margin-top: 8px; }
#wallet-status:empty { display: none; }
.wallet-note { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 0; }
@media (max-width: 925px) { .projects { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero-content { max-width: 75%; } }
@media (max-width: 690px) {
  .shell { width: calc(100% - 32px); } .header-inner { min-height: 66px; gap: 15px; } .brand { font-size: 22px; gap: 7px; }
  .header-inner nav { display: none; } .wallet { padding: 9px 12px; font-size: 12px; }
  .hero { margin-top: 16px; } .hero-content { max-width: none; padding: 25px 19px; } .orbit { inset: 0 -8% 0 62%; opacity: .27; }
  .intro { grid-template-columns: 1fr; gap: 8px; } .directory-heading { align-items: stretch; flex-direction: column; }
  .search { flex: 1; min-width: 0; } .search input { width: 100%; } .category select { max-width: 132px; } .detail-grid { grid-template-columns: 1fr; }
  .detail-hero, .detail-panel { padding: 18px; } .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 490px) { .projects { grid-template-columns: 1fr; } }


.wallet-wait { padding: 10px 12px; border-radius: 9px; background: var(--lavender); }
