:root {
  color-scheme: dark;
  --bg: #110f18;
  --panel: #1b1724;
  --ink: #f6f0e8;
  --muted: #b9afc2;
  --gold: #ffce83;
  --edge: #393044;
  font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
button, input, select, textarea { font: inherit; }
a { color: var(--gold); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.45rem, 3.3vw, 2.05rem); }
p { color: var(--muted); }
code { font: .93rem/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip { position: fixed; z-index: 2; left: 1rem; top: 1rem; padding: .6rem; background: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--edge); background: #15121d; }
.top-inner { min-height: 76px; display: flex; align-items: center; gap: 2.6rem; }
.brand { color: var(--ink); font-weight: 850; letter-spacing: .085em; white-space: nowrap; text-decoration: none; }
.brand b, .brand-mark { color: var(--gold); }
.brand-mark { margin-right: .35em; }
.top nav { display: flex; align-items: center; gap: 1.4rem; }
.top nav a { color: var(--muted); text-decoration: none; padding: .45rem 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); }
.top nav a[aria-current] { border-bottom: 1px solid var(--gold); }
.account { margin-left: auto; }
.hero { background: #231830; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#120f1cf5 2%,#120f1ce8 23%,#120f1c78 57%,#120f1c15 100%), linear-gradient(0deg,#110f18 0%,#110f1800 40%), url(hero.jpg) center 53% / cover no-repeat; }
.hero-content { min-height: 505px; padding-block: 105px 80px; }
.eyebrow { color: var(--gold); font-size: .84rem; font-weight: 740; letter-spacing: .13em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 6.4rem); line-height: .97; font-weight: 900; letter-spacing: -.066em; }
.hero h1 span { color: var(--gold); }
.hero-lead { margin-block: 1.35rem 1.85rem; color: #ece2f2; font-size: clamp(1.1rem, 2.5vw, 1.33rem); max-width: 28rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .5rem; cursor: pointer; text-decoration: none; font-weight: 670; line-height: 1.25; }
.primary { background: var(--gold); color: #1e1423; }
.primary:hover { background: #ffe0a9; }
.secondary { color: var(--ink); background: #241c2eeb; border-color: #584963; }
.secondary:hover { background: #34273d; }
.compact { min-height: 38px; padding: .46rem .75rem; font-size: .89rem; }
.server-line { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-top: 1.4rem; color: var(--muted); font-size: .89rem; }
.server-line code { color: var(--ink); }
.section { padding-block: clamp(2.3rem, 5vw, 4rem); }
.steps { margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.steps li { counter-increment: step; padding: 1.3rem; border-top: 1px solid #675070; background: #191521; }
.steps li::before { content: "0" counter(step); color: var(--gold); font: .88rem ui-monospace, monospace; }
.steps h3 { font-size: 1.18rem; margin-top: .7rem; }
.steps p { margin: .7rem 0; }
.command { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.copy-status { color: var(--muted); font-size: .88rem; }
.page-head { margin: 0 0 1.8rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.page-head h1, .narrow > h1 { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -.052em; }
.page-head p:not(.eyebrow), .narrow > p { margin-top: .65rem; max-width: 42rem; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.card, .row, .callout, .balance, .empty { background: var(--panel); border: 1px solid var(--edge); border-radius: .7rem; }
.card { padding: clamp(1rem, 3.4vw, 1.65rem); }
.card h2 { margin-top: .8rem; }
.card p { margin-top: .65rem; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.chip { color: #e7cade; border: 1px solid #5e4167; border-radius: .4rem; background: #2a2034; padding: .26rem .53rem; font-size: .83rem; white-space: nowrap; }
.price, .balance strong { color: var(--gold); font-size: 1.45rem; }
.balance { min-width: 10rem; padding: .7rem 1rem; }
.balance small, .balance strong { display: block; }
.balance small { color: var(--muted); font-size: .88rem; }
.stack { display: grid; gap: .58rem; margin-top: 1.15rem; }
.stack label { font-weight: 600; }
.stack input, .stack select, .stack textarea { width: 100%; padding: .65rem .75rem; color: var(--ink); border: 1px solid #685674; border-radius: .44rem; background: #14111c; }
.stack textarea { resize: vertical; }
.stack .button { justify-self: start; margin-top: .3rem; }
.callout { padding: 1rem 1.2rem; margin-top: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.history { padding-bottom: 0; }
.history h2 { margin-bottom: 1rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.2rem; margin-bottom: .65rem; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: end; color: var(--muted); font-size: .85rem; }
.forum-row { color: var(--ink); text-decoration: none; }
.forum-row:hover { background: #272031; border-color: #675070; }
.forum-row h2 { font-size: 1.18rem; margin-bottom: .25rem; }
.forum-list .forum-row { justify-content: start; gap: 1rem; }
.forum-icon { display: grid; place-items: center; flex: 0 0 2.55rem; height: 2.55rem; background: #32243c; color: var(--gold); font-weight: 700; font-size: 1.28rem; border-radius: .45rem; }
.empty, .notice, .error { padding: .9rem 1.05rem; margin-block: .8rem; }
.error { background: #39232d; color: #ffc0c6; border: 1px solid #8c4d60; border-radius: .5rem; }
.crumb { display: block; margin-bottom: 1rem; font-size: .93rem; }
.editor { margin-top: 1.35rem; }
.editor h2 { margin: 0; }
.message { margin-bottom: 1rem; }
.message-meta { color: var(--muted); font-size: .89rem; margin-bottom: .8rem; overflow-wrap: anywhere; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.moderate { margin-top: 1rem; }
.is-hidden { border-style: dashed; }
.pagination { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.footer { padding-block: 1.35rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--edge); color: var(--muted); font-size: .9rem; }
.narrow > .button { margin-top: 1rem; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { display: grid; grid-template-columns: 1fr auto; gap: .45rem .5rem; padding-block: .7rem; }
  .top nav { grid-row: 2; grid-column: 1 / -1; gap: 1.35rem; }
  .account { grid-column: 2; grid-row: 1; margin: 0; }
  .hero-content { min-height: 390px; padding-block: 70px 47px; }
  .hero::before { background-position: center, center, 64% center; }
  .steps, .cards { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; align-items: start; }
  .row { flex-wrap: wrap; }
}
@media (max-width: 375px) {
  .top-inner { grid-template-columns: 1fr; }
  .account { grid-column: 1; grid-row: 3; }
}
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.45rem; }
.section-heading h1 { font-size: clamp(2rem, 6vw, 3.8rem); letter-spacing: -.036em; }
.section-heading p { margin-top: .55rem; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.25rem; align-items: start; }
.boards { display: grid; gap: 1.15rem; min-width: 0; }
.board { background: #191622; border: 1px solid var(--edge); border-radius: .8rem; overflow: hidden; }
.board > h2 { padding: .85rem 1.05rem; background: #262033; color: #f4dcc1; font-size: 1.03rem; }
.board-row { display: grid; grid-template-columns: minmax(0,1fr) 7.7rem minmax(0, 11rem); gap: .8rem; align-items: center; min-height: 83px; padding: .85rem 1rem; }
.board-row + .board-row { border-top: 1px solid var(--edge); }
.board-cell { display: flex; align-items: center; min-width: 0; gap: .75rem; }
.board-cell h3 { font-size: 1.02rem; margin-bottom: .24rem; }
.board-cell h3 a, .board-latest a, .recent-list a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.board-cell h3 a:hover, .board-latest a:hover, .recent-list a:hover { color: var(--gold); text-decoration: underline; }
.board-cell p, .board-count, .board-latest, .recent-list time { font-size: .83rem; color: var(--muted); }
.board-symbol { flex: 0 0 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: .5rem; background: #2a2234; }
.board-symbol::before { content: ""; width: .85rem; height: .67rem; border: 2px solid #d8a4ed; border-radius: .25rem; }
.symbol-rules::before { height: .94rem; border-color: var(--gold); box-shadow: inset 0 -.24rem #7c5e5d; border-radius: .12rem; }
.symbol-news::before { border-radius: 0; width: .7rem; height: .7rem; transform: rotate(45deg); border-color: var(--gold); }
.symbol-help::before { border-radius: 50%; border-color: #a2d6cf; border-right-style: dotted; }
.symbol-ideas::before { height: .8rem; border-radius: 50% 50% .17rem .17rem; }
.board-count { display: flex; gap: .9rem; margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
.board-count dd { color: var(--ink); margin: 0; font-size: .98rem; }
.board-latest { min-width: 0; border-left: 1px solid var(--edge); padding-left: .8rem; }
.board-latest a, .board-latest time, .recent-list time { display: block; }
.recent-list { display: grid; gap: .7rem; padding: .8rem 1rem; }
.forum-guide { display: inline-block; margin-top: .85rem; }
.storefront { --shop-panel: #1c1726; }
.shop-heading { margin-bottom: .85rem; }
.store-balance { display: grid; color: var(--gold); text-decoration: none; line-height: 1.35; }
.store-balance small, .store-balance span { color: var(--muted); font-size: .87rem; }
.store-balance strong { font-size: 1.35rem; }
.store-balance:hover span { text-decoration: underline; }
.demo-note { padding: .85rem 1rem; margin-bottom: 1.6rem; background: #282033; border: 1px solid #4c3a5b; border-radius: .7rem; color: #e2d5ea; }
.demo-note strong { color: var(--gold); }
.catalog-label { font-size: 1.4rem; margin: 1.65rem 0 .8rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.catalog-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: end; min-height: 165px; overflow: hidden; border: 1px solid #4d3c62; border-radius: .78rem; background: radial-gradient(ellipse at 80% 0%, #483460, #21182d 68%); color: var(--ink); text-decoration: none; }
.catalog-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.catalog-tile::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(0deg,#16101ffb 1%,#1b132ac7 33%,#150c171c 76%); }
.tile-caption { padding: .85rem 1rem; overflow-wrap: anywhere; }
.tile-caption h3, .catalog-product h3 { font-size: clamp(1rem, 2.3vw, 1.23rem); }
.tile-caption p, .catalog-product span { margin-top: .2rem; font-size: .84rem; color: #dfcbe6; }
.catalog-tile:hover, .catalog-product:hover { border-color: #c49ad8; }
.catalog-products, .store-item { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.catalog-product { display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 1rem; align-items: center; min-height: 95px; padding: .55rem; border-radius: .72rem; color: var(--ink); border: 1px solid var(--edge); background: var(--shop-panel); text-decoration: none; }
.catalog-product img { width: 100%; height: 4.9rem; object-fit: cover; border-radius: .35rem; }
.catalog-product span { display: block; color: var(--gold); }
.store-item > img { width: 100%; height: auto; max-height: 390px; object-fit: cover; border-radius: .78rem; }
.purchase-panel { padding: 1.2rem; border: 1px solid var(--edge); border-radius: .78rem; background: var(--shop-panel); align-self: start; }
.purchase-price { color: var(--gold); margin-top: .65rem; font-size: 1.9rem; font-weight: 750; }
.purchase-price span { font-size: 1rem; font-weight: 500; }
@media (max-width: 980px) {
  .community-grid { grid-template-columns: minmax(0,1fr); }
  .forum-side { max-width: 31rem; }
}
@media (max-width: 700px) {
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-products, .store-item { grid-template-columns: minmax(0,1fr); }
  .store-item > img { max-height: 275px; }
  .board-row { grid-template-columns: minmax(0,1fr) auto; gap: .45rem .75rem; }
  .board-count { gap: .5rem; }
  .board-latest { grid-column: 1 / -1; border: 0; padding-left: 3rem; }
  .board-latest a, .board-latest time { display: inline; margin-right: .35rem; }
}
@media (max-width: 365px) {
  .board-row { grid-template-columns: minmax(0,1fr); }
  .board-count { padding-left: 3rem; }
  .catalog-tile { min-height: 175px; }
  .tile-caption { padding-inline: .65rem; }
}
.model-filter { max-width: 28rem; margin: 0 0 1.4rem; }
.model-filter label { display: block; margin-bottom: .35rem; color: var(--muted); }
.model-filter div { display: flex; gap: .45rem; }
.model-filter input { min-width: 0; flex: 1; padding: .55rem .75rem; color: var(--ink); background: #191424; border: 1px solid #685674; border-radius: .44rem; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: .9rem; }
.model-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #473851; border-radius: .75rem; background: #1b1626; color: var(--ink); text-decoration: none; }
.model-card:is(:hover, :focus-visible) { border-color: #c49ad8; }
.model-stage { display: grid; place-items: center; min-width: 0; padding: .5rem; background: radial-gradient(ellipse at 50% 52%, #392944, #16111f 76%); }
.model-stage img { display: block; width: 100%; height: 12rem; object-fit: contain; mask-image: none; }
.model-caption { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: .3rem; border-top: 1px solid #473851; padding: .7rem .8rem; }
.model-caption small { color: #ffd08c; }
.model-detail .model-stage { min-height: 0; border: 1px solid #473851; border-radius: .75rem; }
.model-detail .model-stage img { height: clamp(17rem, 49vw, 29rem); }
.model-interactive { display: block; padding: 0; overflow: hidden; }
.model-interactive model-viewer { display: block; width: 100%; height: clamp(17rem, 49vw, 29rem); cursor: grab; }
.model-interactive model-viewer:active { cursor: grabbing; }
.model-interactive .model-reveal { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: .65rem; border: 0; border-radius: 0; background: transparent; }
.model-interactive .model-reveal img { position: absolute; inset: .65rem 0; height: calc(100% - 1.3rem); }
.model-reveal span { position: relative; align-self: end; padding: .55rem .95rem; border-radius: .5rem; background: #ffd08c; color: #281914; }
.model-controls, .model-preview-error { margin: 0; padding: .65rem .8rem; border-top: 1px solid #473851; color: var(--muted); font-size: .85rem; }
.model-owned { color: #ffd08c; font-weight: 700; }
