[hidden] { display: none !important; }
:root {
  --bg: #000; --p0: #0b0b0d; --p1: #111114; --p2: #17171c; --line: #232329; --line2: #2c2c31;
  --z4: #7d7d8c; --z3: #9f9fac; --z2: #c8c8cf; --w: #fafafa;
  --o: #e84326; --o2: #ff664d; --od: #220c08;
  --sans: Geist, ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace; --px: Silkscreen, var(--mono);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--w); font: 15px/1.5 var(--sans); overflow-x: hidden; }
a { color: inherit; } button, input, textarea { font: inherit; color: inherit; }

.loading { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .6s; }
.loading img { width: 96px; animation: bob 1.6s ease-in-out infinite; }
.loading span { font: 12px var(--px); letter-spacing: 2px; color: var(--o2); }
.loading.done { opacity: 0; pointer-events: none; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* nav */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 14px 28px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.links { display: flex; gap: 22px; } .links a { text-decoration: none; color: var(--z2); font-size: 14px; } .links a:hover { color: var(--w); }
.right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cachip { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line2); background: rgba(11,11,13,.8); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 12px; }
.cachip span { color: var(--z4); } .cachip b { font: 600 12px var(--mono); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--o); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 17px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .2s; white-space: nowrap; }
.pill:hover { background: var(--o2); }
.pill.dark { background: rgba(11,11,13,.85); border: 1px solid var(--line2); }
.pill.dark:hover { background: var(--p2); }
.pill.big { padding: 13px 22px; font-size: 15px; }
.pill.wide { width: 100%; margin-top: 16px; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
#sky { position: absolute; inset: 0; } #sky canvas { display: block; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 22%); }
#tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.itag { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; text-align: center; padding: 4px 9px; border-radius: 6px; background: rgba(10,8,14,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); white-space: nowrap; }
.itag b { display: block; font: 11px var(--px); letter-spacing: .5px; } .itag small { display: block; font: 9px var(--mono); color: var(--z3); }
.itag small::before { content: "● "; color: var(--o2); }
.itag.cap { border-color: var(--o); } .itag.cap b { color: var(--o2); }
.itag:hover { border-color: var(--o2); }
.hcopy { position: absolute; z-index: 3; left: 72px; top: 50%; transform: translateY(-50%); max-width: 600px; pointer-events: none; }
.hcopy > * { pointer-events: auto; }
.pow { font: 12px var(--mono); color: var(--z2); margin-bottom: 18px; letter-spacing: .5px; }
.hero h1 { margin: 0; font-weight: 600; font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -2.5px; }
.hero h1 em { font-style: normal; color: var(--o2); }
.hero p { margin: 22px 0 26px; max-width: 520px; color: var(--z2); font-size: 16.5px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.castrip { margin-top: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(11,11,13,.82); backdrop-filter: blur(8px); max-width: 560px; }
.castrip b { font-weight: 700; font-size: 13px; }
.castrip code { flex: 1; min-width: 0; font: 12px var(--mono); color: var(--z3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { border: 1px solid var(--line2); background: var(--p1); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip.or { background: var(--o); border-color: var(--o); }
.hstats { position: absolute; z-index: 3; left: 72px; right: 72px; bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hstats span { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(11,11,13,.8); border: 1px solid var(--line2); font-size: 12.5px; color: var(--z2); }
.hstats i { width: 7px; height: 7px; border-radius: 50%; background: var(--o2); box-shadow: 0 0 8px var(--o2); }
.hstats b { font: 600 12.5px var(--mono); color: var(--w); }
.hstats .drag { margin-left: auto; }

/* sections */
.sec { max-width: 1180px; margin: 0 auto; padding: 110px 28px 0; }
.sec h2 { margin: 0; font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -1.6px; }
.lead { color: var(--z3); max-width: 560px; margin: 12px 0 34px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(120% 90% at 50% 25%, #1d1424 0%, #0b0b0d 70%); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; text-align: left; padding: 0; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card .thumb { height: 190px; display: grid; place-items: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .thumb .ph { width: 70px; height: 70px; border-radius: 50%; border: 2px dashed var(--line2); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card .foot2 { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.card .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--p2); object-fit: cover; flex: none; }
.card .nm { min-width: 0; flex: 1; }
.card .nm b { display: block; font: 13px var(--px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .nm small { display: block; font-size: 12px; color: var(--z3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { font-size: 11.5px; color: var(--z2); white-space: nowrap; } .live::before { content: "● "; color: var(--o2); }
.card.cap { border-color: rgba(232,67,38,.5); }
.card.open .thumb { color: var(--z4); font: 12px var(--px); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pc { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--p0); }
.pc .n { font: 12px var(--px); color: var(--o2); }
.pc h3 { margin: 18px 0 8px; font-weight: 600; font-size: 22px; letter-spacing: -.4px; }
.pc p { margin: 0; color: var(--z3); font-size: 14px; }
.steps { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.steps > div { padding: 24px; border-right: 1px solid var(--line); background: var(--p0); }
.steps > div:last-child { border-right: 0; }
.px { font: 13px var(--px); color: var(--o2); }
.steps h4 { margin: 14px 0 6px; font-size: 17px; font-weight: 600; } .steps p { margin: 0; color: var(--z3); font-size: 14px; }

.found { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.fcard, .fprev { border: 1px solid var(--line); border-radius: 20px; background: var(--p0); padding: 22px; }
.fcard label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--z3); margin-top: 14px; }
.fcard label:first-child { margin-top: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .g2 label { margin-top: 0; }
.fcard input, .fcard textarea { background: var(--p1); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; outline: none; resize: vertical; }
.fcard input:focus, .fcard textarea:focus { border-color: var(--o); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.seg button { border: 1px solid var(--line2); background: var(--p1); border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; color: var(--z2); }
.seg button.on { background: var(--od); border-color: var(--o); color: var(--w); }
.swatches { display: flex; gap: 8px; margin-top: 6px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatches button.on { border-color: #fff; }
.note { font-size: 12.5px; color: var(--z4); margin: 10px 0 0; }
.note.ok { color: #8ff0b8; }
.fprev { display: flex; flex-direction: column; background: radial-gradient(120% 90% at 50% 25%, #2a1730 0%, #0b0b0d 70%); }
.thumbwrap { height: 260px; display: grid; place-items: center; } .thumbwrap img { max-width: 100%; max-height: 100%; }
.meta { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; } .meta b { font: 16px var(--px); } .meta span { color: var(--z3); font-size: 13px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; } .kv span { color: var(--z3); } .kv b { font-weight: 600; }

details { border-top: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--o2); font-size: 22px; line-height: 1; } details[open] summary::after { content: "–"; }
details p { color: var(--z3); margin: 10px 0 0; }
.foot { max-width: 1180px; margin: 110px auto 0; padding: 26px 28px 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: var(--z4); font-size: 13px; }
.foot img { width: 24px; border-radius: 6px; } .foot b { color: var(--w); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.mcard { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line2); border-radius: 22px; background: var(--p0); }
.mcard .x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(0,0,0,.6); cursor: pointer; }
.mtop { display: grid; grid-template-columns: 1.1fr 1fr; background: radial-gradient(120% 90% at 40% 30%, #2a1730 0%, #0b0b0d 75%); }
.mtop .mimg { height: 300px; display: grid; place-items: center; } .mtop .mimg img { max-width: 100%; max-height: 100%; }
.mtop .mside { padding: 26px 22px 22px 6px; display: flex; flex-direction: column; gap: 6px; }
.mtitle { display: flex; align-items: center; gap: 10px; } .mtitle img { width: 42px; height: 42px; border-radius: 10px; }
.mtitle b { font: 18px var(--px); display: block; } .mtitle small { color: var(--z3); }
.bars { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; }
.bar small { display: flex; justify-content: space-between; font-size: 12px; color: var(--z3); }
.bar div { height: 6px; border-radius: 3px; background: var(--p2); overflow: hidden; margin-top: 4px; }
.bar div i { display: block; height: 100%; background: linear-gradient(90deg, var(--o), var(--o2)); border-radius: 3px; }
.mbody { padding: 18px 22px 22px; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mstats div { padding: 12px 14px; border-right: 1px solid var(--line); } .mstats div:last-child { border: 0; }
.mstats small { display: block; font-size: 11px; color: var(--z4); text-transform: uppercase; letter-spacing: 1px; } .mstats b { font: 600 15px var(--mono); }
.charter { margin: 16px 0 0; color: var(--z2); font-size: 14px; }
.charter b { color: var(--w); }
.up { color: #8ff0b8 !important; } .dn { color: #ff7a8a !important; }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } .pillars, .steps { grid-template-columns: 1fr 1fr; } .steps > div:nth-child(2) { border-right: 0; } .steps > div { border-bottom: 1px solid var(--line); } .links { display: none; } }
@media (max-width: 720px) {
  .nav { padding: 12px 14px; gap: 10px; } .cachip { display: none; } .nav .pill { padding: 8px 13px; font-size: 13px; }
  .hcopy { left: 16px; right: 16px; top: auto; bottom: 110px; transform: none; }
  .hero h1 { letter-spacing: -1.5px; } .hero p { font-size: 15px; margin: 14px 0 18px; }
  .shade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.1) 75%); }
  .hstats { left: 16px; right: 16px; bottom: 16px; } .hstats .drag { display: none; } .hstats span:nth-child(3) { display: none; }
  .sec { padding: 80px 16px 0; } .grid { grid-template-columns: 1fr 1fr; gap: 10px; } .card .thumb { height: 140px; }
  .pillars, .steps, .found { grid-template-columns: 1fr; } .steps > div { border-right: 0; }
  .mtop { grid-template-columns: 1fr; } .mtop .mimg { height: 220px; } .mtop .mside { padding: 0 18px 10px; } .mstats { grid-template-columns: 1fr 1fr; } .mstats div:nth-child(2) { border-right: 0; } .mstats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .g2 { grid-template-columns: 1fr; } .g2 label + label { margin-top: 14px; }
  .foot { margin-top: 80px; }
}
