:root {
  color-scheme: dark;
  --bg: #111a19;
  --panel: #1b2926;
  --line: #39514a;
  --ink: #fff3da;
  --muted: #c0d0c8;
  --mint: #86efb2;
  --shadow: #080f0e;
  font: 100%/1.5 system-ui, sans-serif;
  scroll-padding-top: 1.25rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 70% 1%, #223d34, transparent 40rem), var(--bg);
  color: var(--ink);
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffc878; outline-offset: 4px; }
.skip { position: absolute; z-index: 1; background: var(--panel); padding: .75rem; transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.top, .section-head, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top { min-height: 78px; }
.brand { display: flex; gap: .65rem; align-items: center; font: 800 1rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.brand img { border-radius: 50%; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2rem); }
nav a { font-weight: 650; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--mint); }
.hero {
  display: grid;
  min-height: 478px;
  grid-template-columns: 1.15fr 1fr;
  background-color: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 7px var(--shadow);
}
.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 4rem);
  background: linear-gradient(90deg, #ffffff08 1px, transparent 1px), linear-gradient(#ffffff08 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-art { display: block; width: 100%; height: 100%; max-height: 490px; object-fit: cover; object-position: 55% 52%; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: ui-monospace, monospace; font-weight: 900; line-height: 1.02; letter-spacing: -.075em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.55rem); }
h1 em { font-style: normal; color: var(--mint); }
h2 { font-size: clamp(1.85rem, 5vw, 3rem); }
p { color: var(--muted); }
.eyebrow { color: var(--mint); font: 700 .875rem/1.4 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.intro { margin-block: 1.2rem 1.45rem; max-width: 29ch; font-size: 1.1rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid #657c72; box-shadow: 0 3px var(--shadow); background: #273a34; color: var(--ink); text-align: center; font-weight: 750; line-height: 1.25; text-decoration: none; }
.button:hover { background: #364d44; }
.primary { background: var(--mint); border-color: #b0f6ca; color: #172f25; box-shadow: 0 3px #436e55; }
.primary:hover { background: #b0f6ca; }
.section { margin-top: clamp(2.8rem, 7vw, 5.15rem); }
.section-head { margin-bottom: 1.3rem; align-items: end; }
.section-head p { margin-top: .55rem; }
.view-switch { display: flex; border: 1px solid #567267; padding: .2rem; background: #101c19; }
.view-switch[hidden] { display: none; }
.view-switch button { background: transparent; color: var(--muted); border: 0; min-height: 40px; padding: .5rem .8rem; font: inherit; font-weight: 700; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: #385e4e; color: var(--ink); }
.skins, .builds { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.skins { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skin { min-width: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 3px var(--shadow); padding-bottom: .85rem; }
.featured { border-color: #79b997; }
.skin-art { background-color: var(--swatch); background-image: linear-gradient(90deg, #fff1 1px, transparent 1px), linear-gradient(#fff1 1px, transparent 1px); background-size: 24px 24px; display: grid; justify-items: center; padding: .65rem 0 0; }
.skin-art img { width: min(100%, 136px); height: auto; aspect-ratio: 182 / 270; object-fit: contain; image-rendering: pixelated; }
.teal { --swatch: #234f4c; }
.gold { --swatch: #67502f; }
.amber { --swatch: #5b4530; }
.blue { --swatch: #354c65; }
.rose { --swatch: #573c4d; }
.slate { --swatch: #354b5b; }
.honey { --swatch: #57482e; }
.skin-info { padding: .85rem .8rem 0; }
.skin.featured .skin-art { box-shadow: inset 0 -3px #79b997; }
.skin-info h3 { font: 750 1rem/1.25 ui-monospace, monospace; }
.skin-info span { display: block; margin-top: .3rem; font-size: .875rem; color: var(--muted); }
.skin .button { font-size: .875rem; margin: .75rem .8rem .1rem; padding-inline: .5rem; }
.skin-notes { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: baseline; margin-top: 1.25rem; }
details { max-width: 43rem; }
details ol { padding-left: 1.3rem; margin: .6rem 0 0; }
summary { color: var(--mint); cursor: pointer; font-weight: 700; }
.builds { grid-template-columns: repeat(3,minmax(0,1fr)); }
.build-video { display: block; text-decoration: none; }
.builds img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.builds strong { display: block; padding: .85rem; }
.footer { align-items: baseline; margin-top: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer small { font-size: .85rem; text-align: right; }
@media (max-width: 740px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { height: clamp(180px, 42vw, 310px); object-position: 55% 42%; }
  .hero-copy { padding: 1.8rem; }
  .skins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 510px) {
  .wrap { width: calc(100% - 1.25rem); }
  .skins, .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .hero-copy { padding: 1.3rem; }
  .hero-art { object-position: 55% 52%; }
  .hero .actions .button { padding-inline: .75rem; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .brand { letter-spacing: .04em; }
  .footer { flex-direction: column; gap: .4rem; }
  .footer small { text-align: left; }
}

.builds { align-items: start; }
.builds .build-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 3px var(--shadow); }
.builds .build-video:hover strong { color: var(--mint); }
.build-plan { border-top: 1px solid var(--line); padding: .8rem; }
.plan-content > p { font-size: .9rem; margin-top: .5rem; }
.plan-content ol { margin-bottom: .75rem; }
.plan-content li + li { margin-top: .3rem; }
.layer-controls select { max-width: 100%; padding: .5rem; font: inherit; background: #101c19; color: var(--ink); border: 1px solid var(--line); }
.plan-orientation { font-size: .875rem; margin-block: .6rem; }
.layer-grid { width: 100%; max-width: 16rem; table-layout: fixed; border-spacing: 2px; }
.layer-grid caption { text-align: left; font-weight: 700; margin-bottom: .25rem; }
.layer-grid td { height: 2rem; background: #101c19; text-align: center; font-family: ui-monospace, monospace; font-weight: 700; }
.plan-materials { list-style: none; padding: 0; margin: .7rem 0; }
.plan-download { display: inline-block; color: var(--mint); }
@media (max-width: 560px) {
  .builds { grid-template-columns: 1fr; }
}

.layer-map { overflow: auto; }
.layer-map-large { max-height: 24rem; overscroll-behavior: contain; }
.layer-map-large:focus-visible { outline: 2px solid #ffc878; outline-offset: 3px; }
.layer-map-large .layer-grid { max-width: none; }
.layer-map-large td { height: 1.45rem; }
.plan-pending { border-top: 1px solid var(--line); padding: .8rem; }

.page-title { font-size: clamp(1.85rem, 5vw, 3rem); }
.all-builds { margin-top: 1rem; }
.all-builds a { color: var(--mint); font-weight: 700; }
.catalog-controls { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; align-items: end; margin-bottom: 1rem; }
.catalog-controls .field { display: flex; flex-direction: column; gap: .3rem; }
.catalog-controls label { font-weight: 700; font-size: .875rem; color: var(--muted); }
.catalog-controls input, .catalog-controls select { min-height: 44px; padding: .5rem .65rem; font: inherit; background: #101c19; color: var(--ink); border: 1px solid var(--line); }
.filter-group { display: flex; border: 1px solid #567267; padding: .2rem; background: #101c19; }
.filter-group button { background: transparent; color: var(--muted); border: 0; min-height: 40px; padding: .5rem .8rem; font: inherit; font-weight: 700; cursor: pointer; }
.filter-group button[aria-pressed="true"] { background: #385e4e; color: var(--ink); }
.catalog-meta { font-size: .85rem; padding: 0 .85rem; }
.plan-badge { display: inline-block; margin: .5rem .85rem .85rem; padding: .1rem .5rem; border: 1px solid var(--mint); color: var(--mint); font-size: .8rem; font-weight: 700; text-decoration: none; }
.catalog-results { margin-top: 1rem; }
.catalog-more { margin-top: 1.25rem; text-align: center; }
[hidden] { display: none !important; }
