:root {
  color-scheme: dark;
  --bg: #09151d;
  --panel: #101f29;
  --panel2: #152832;
  --line: #29404a;
  --text: #f2f3e8;
  --muted: #9cafa9;
  --mint: #a9e9c7;
  --mint-deep: #275c50;
  --gold: #dfbf84;
  --radius: 16px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
  overflow-x: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
button:hover {
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
::selection {
  background: var(--mint);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}
.ambient-one {
  top: -250px;
  right: -260px;
  width: 750px;
  height: 750px;
  background: #287c76;
}
.ambient-two {
  top: 420px;
  left: -270px;
  width: 650px;
  height: 650px;
  background: #254c5e;
}
.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid #ffffff19;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.105em;
}
.brand small {
  display: block;
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 0.32em;
  font-weight: 700;
}
.brand-mark {
  width: 38px;
  height: 38px;
  position: relative;
  display: block;
}
.brand-mark span {
  position: absolute;
  display: block;
  border: 2px solid var(--mint);
  transform: rotate(30deg) skew(-12deg, -12deg);
  width: 19px;
  height: 19px;
}
.brand-mark span:nth-child(1) {
  left: 9px;
  top: 1px;
}
.brand-mark span:nth-child(2) {
  left: 1px;
  top: 16px;
}
.brand-mark span:nth-child(3) {
  left: 18px;
  top: 16px;
}
.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto;
  color: #c3d2cd;
  font-size: 13px;
}
.site-header nav a:hover,
.site-footer a:hover {
  color: var(--mint);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-label {
  font-size: 12px;
  color: var(--mint);
  white-space: nowrap;
}
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 17px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.button span {
  font-size: 18px;
  font-weight: 400;
}
.button:hover {
  transform: translateY(-2px);
}
.button-ghost {
  border-color: #5b787d;
  background: #ffffff06;
  color: var(--text);
}
.button-ghost:hover,
.button-outline:hover {
  border-color: var(--mint);
  background: #a9e9c710;
}
.button-accent {
  background: var(--mint);
  border-color: var(--mint);
  color: #102824;
}
.button-accent:hover {
  background: #c4f7d9;
}
.button-outline {
  border-color: #809994;
  background: transparent;
  color: var(--text);
}
.button-large {
  height: 54px;
  padding-inline: 25px;
}
.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.full {
  width: 100%;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 575px;
  align-items: center;
  gap: 55px;
  padding-block: 62px 74px;
}
.hero-copy {
  max-width: 600px;
  z-index: 1;
}
.eyebrow,
.overline,
.section-topline {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mint);
  font-weight: 800;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.signal,
.caption-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}
.eyebrow-index {
  color: #638381;
}
.hero h1 {
  font-size: clamp(42px, 4.5vw, 67px);
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin: 26px 0 24px;
  font-weight: 820;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint);
}
.hero-copy > p {
  max-width: 510px;
  line-height: 1.9;
  font-size: 16px;
  color: #afc0ba;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 31px;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 65px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #71908e;
}
.hero-foot strong {
  display: block;
  color: #bfd9cb;
  font-size: 11px;
  margin-top: 7px;
  letter-spacing: 0;
}
.hero-art {
  height: 460px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a615a7a;
  border-radius: 18px;
  background: radial-gradient(
    circle at 58% 43%,
    #2b5a4c 0%,
    #152e31 38%,
    #0b1c26 80%
  );
  overflow: hidden;
  box-shadow: 0 20px 80px #0006;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #87b4a420;
  border-radius: 12px;
}
.hero-art:after {
  content: "TC / SCHEMATIC ARCHIVE";
  position: absolute;
  right: 27px;
  top: 25px;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.17em;
  color: #82a79a;
}
.grid-plane {
  position: absolute;
  width: 440px;
  height: 290px;
  left: 10%;
  bottom: -65px;
  transform: perspective(420px) rotateX(64deg) rotateZ(-27deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, #a1e8c633 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #a1e8c633 32px);
  mask-image: radial-gradient(ellipse, #000 20%, transparent 76%);
}
.voxel {
  position: absolute;
  transform: rotate(-30deg) skew(5deg, 5deg);
  border: 1px solid #b7fad9;
  box-shadow:
    22px 22px 0 #163e3b,
    22px 22px 0 1px #71b89d,
    0 0 35px #8be6c633;
}
.voxel:before,
.voxel:after {
  content: "";
  position: absolute;
  border: 1px solid #a9e9c7;
}
.voxel:before {
  width: 20px;
  height: 100%;
  left: 100%;
  top: 10px;
  transform: skewY(45deg);
  background: #275f52;
}
.voxel:after {
  width: 100%;
  height: 20px;
  top: 100%;
  left: 10px;
  transform: skewX(45deg);
  background: #184740;
}
.voxel-back {
  width: 136px;
  height: 138px;
  left: 22%;
  top: 35%;
  background: linear-gradient(135deg, #88dfb5, #4f9783);
}
.voxel-mid {
  width: 145px;
  height: 145px;
  left: 44%;
  top: 24%;
  background: linear-gradient(145deg, #a9e9c7, #5aab93);
}
.voxel-front {
  width: 105px;
  height: 102px;
  left: 48%;
  top: 52%;
  background: linear-gradient(145deg, #d2f6d7, #78c6a5);
}
.art-coordinate {
  position: absolute;
  left: 28px;
  top: 28px;
  color: #88b6aa;
  font:
    11px/1.6 ui-monospace,
    Consolas,
    monospace;
}
.art-caption {
  position: absolute;
  bottom: 23px;
  right: 25px;
  color: #b8d6c6;
  font:
    10px ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.catalog-section {
  background: #0d1b25;
  border-top: 1px solid #24413f;
  border-bottom: 1px solid #24413f;
  padding: 78px 0 86px;
}
.section-topline {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #2f4b4c;
  padding-bottom: 17px;
}
.section-topline span:last-child {
  color: #708d8b;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 40px 0 28px;
}
.catalog-heading h2,
.how-section h2 {
  font-size: clamp(29px, 3vw, 40px);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.catalog-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.count-pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 16px;
  font:
    12px ui-monospace,
    monospace;
  color: var(--mint);
  white-space: nowrap;
}
.catalog-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.search-box {
  width: min(100%, 375px);
  height: 46px;
  border: 1px solid #44615f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: #0b1822;
  color: #88a5a0;
}
.search-box:focus-within {
  border-color: var(--mint);
}
.search-box > span {
  font-size: 27px;
  line-height: 1;
}
.search-box input {
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.search-box input::placeholder {
  color: #75918e;
}
kbd {
  border: 1px solid #4c6363;
  padding: 2px 6px;
  border-radius: 4px;
  color: #bdd4c9;
  background: #1e333a;
  font:
    11px ui-monospace,
    monospace;
}
.filter-strip {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid #3b5556;
  border-radius: 6px;
  background: transparent;
  color: #a8bbb5;
  height: 39px;
  padding: 0 15px;
  font-size: 12px;
}
.filter:hover,
.filter.active {
  border-color: var(--mint);
  background: #a9e9c71a;
  color: var(--mint);
}
.catalog-status {
  min-height: 22px;
  margin-top: 22px;
  color: #9db5ac;
  font-size: 13px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.item-card {
  border: 1px solid #375052;
  background: linear-gradient(145deg, #162b32, #10232d);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.item-card:hover {
  transform: translateY(-4px);
  border-color: #76b69e;
  box-shadow: 0 16px 30px #0004;
}
.card-art {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 52% 40%, #335d53, #1b3a3d 50%, #142932);
  border-bottom: 1px solid #3b5856;
}
.card-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, #acd7b410 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, #acd7b410 23px);
}
.card-art:after {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  left: calc(50% - 40px);
  top: 34px;
  transform: rotate(-25deg) skew(4deg, 4deg);
  background: linear-gradient(135deg, #c1edbd, #70af94);
  border: 1px solid #d7ffda;
  box-shadow:
    17px 17px 0 #215548,
    17px 17px 0 1px #9bdbb6,
    0 0 25px #a9e9c744;
}
.item-card:nth-child(3n + 2) .card-art {
  background: radial-gradient(circle at 50% 42%, #565e51, #353e3c 55%, #1a2a30);
}
.item-card:nth-child(3n + 2) .card-art:after {
  background: linear-gradient(135deg, #e5d5a3, #a2ae8f);
  box-shadow:
    17px 17px 0 #5c654f,
    17px 17px 0 1px #e4d4aa;
}
.item-card:nth-child(3n + 3) .card-art {
  background: radial-gradient(circle at 50% 42%, #395d68, #223d4b 55%, #152a36);
}
.item-card:nth-child(3n + 3) .card-art:after {
  background: linear-gradient(135deg, #b5d6e9, #6a9bb1);
  box-shadow:
    17px 17px 0 #2c5667,
    17px 17px 0 1px #a9d4e6;
}
.card-index {
  position: absolute;
  z-index: 1;
  left: 18px;
  top: 16px;
  color: #d5f7df;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.card-body {
  padding: 21px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.35;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.card-description {
  font-size: 12px;
  line-height: 1.7;
  color: #a9bbb3;
  margin: 0 0 18px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-tag {
  border: 1px solid #537268;
  color: #b4dcc5;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
}
.card-meta {
  border-top: 1px solid #36504e;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  color: #91aca3;
  font-size: 11px;
}
.card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
}
.card-action button {
  border: 0;
  background: transparent;
  color: var(--mint);
  font-size: 12px;
  font-weight: 750;
  padding: 5px 0;
}
.card-action button:hover {
  color: #e0fce9;
}
.card-action span {
  font:
    10px ui-monospace,
    monospace;
  color: #88a399;
}
.empty-state {
  grid-column: 1/-1;
  border: 1px dashed #4c6864;
  padding: 58px 20px;
  text-align: center;
  border-radius: 12px;
  color: #b3c8bc;
}
.empty-state strong {
  display: block;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 34px;
  color: #9ab2a6;
  font:
    12px ui-monospace,
    monospace;
}
.how-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  padding-block: 82px 100px;
}
.how-section h2 {
  line-height: 1.25;
  margin-top: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps > div {
  border-left: 1px solid #41625c;
  padding: 0 0 0 18px;
}
.steps span {
  font:
    13px ui-monospace,
    monospace;
  color: var(--mint);
}
.steps strong {
  display: block;
  margin: 28px 0 10px;
  font-size: 14px;
}
.steps p {
  margin: 0;
  color: #9bb3a9;
  line-height: 1.7;
  font-size: 12px;
}
.site-footer {
  border-top: 1px solid #284440;
  background: #071118;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 32px;
}
.site-footer strong {
  font:
    12px ui-monospace,
    monospace;
  letter-spacing: 0.15em;
  color: var(--mint);
}
.site-footer p,
.site-footer span,
.site-footer a {
  font-size: 12px;
  color: #819a91;
}
.site-footer p {
  margin: 8px 0 0;
}
.site-footer .wrap > div:last-child {
  display: flex;
  align-items: center;
  gap: 23px;
}
.modal {
  width: min(490px, calc(100% - 32px));
  max-height: min(780px, calc(100% - 30px));
  overflow: auto;
  border: 1px solid #577568;
  background: #10232c;
  color: var(--text);
  border-radius: 13px;
  padding: 26px 29px 30px;
  box-shadow: 0 25px 90px #000a;
}
.modal::backdrop {
  background: #030d11cc;
  backdrop-filter: blur(7px);
}
.modal-wide {
  width: min(630px, calc(100% - 32px));
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mint);
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.icon-button {
  background: transparent;
  color: #b7ccc0;
  border: 0;
  font-size: 27px;
  line-height: 1;
  padding: 0 3px;
}
.modal h2 {
  font-size: 27px;
  margin: 23px 0 15px;
}
.modal p {
  font-size: 14px;
  line-height: 1.85;
  color: #c5d3ca;
}
.modal .subtle {
  color: #93aa9f;
  font-size: 12px;
}
.modal > .button {
  margin-top: 16px;
}
.modal form {
  display: grid;
  gap: 17px;
  margin-top: 23px;
}
.modal form label {
  display: grid;
  gap: 8px;
  color: #e5eee5;
  font-size: 12px;
  font-weight: 700;
}
.modal form label span {
  color: #91a99c;
  font-weight: 400;
}
.modal input,
.modal textarea {
  width: 100%;
  border: 1px solid #51716a;
  border-radius: 7px;
  background: #0a1b24;
  color: var(--text);
  padding: 11px 12px;
  outline: 0;
}
.modal input:focus,
.modal textarea:focus {
  border-color: var(--mint);
}
.modal input[type="file"] {
  padding: 12px;
  font-size: 12px;
}
.modal input[type="file"]::file-selector-button {
  border: 0;
  background: #285345;
  color: #dbf4e4;
  border-radius: 4px;
  padding: 7px 10px;
  margin-right: 12px;
  cursor: pointer;
}
.modal small {
  color: #87a095;
  font-size: 11px;
}
.form-status {
  min-height: 18px;
  color: var(--mint);
  font-size: 12px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.detail-meta > span {
  border: 1px solid #44655b;
  border-radius: 5px;
  padding: 8px 10px;
  color: #bad5c4;
  font-size: 12px;
}
.detail-hash {
  overflow-wrap: anywhere;
  font:
    11px/1.6 ui-monospace,
    monospace;
  color: #94aca1;
  border-top: 1px solid #34514d;
  padding-top: 15px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 23px;
}
.detail-actions .button {
  flex: 1;
}
.button-danger {
  background: transparent;
  border-color: #8d5d5d;
  color: #eab3a9;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 5;
  background: #b7efd2;
  color: #14332b;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 10px 40px #0008;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1050px) {
  .site-header {
    gap: 20px;
  }
  .site-header nav {
    gap: 15px;
  }
  .hero {
    gap: 20px;
  }
  .hero-foot {
    gap: 14px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, 600px);
  }
  .site-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding-block: 15px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 0;
    padding-top: 8px;
    font-size: 12px;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 52px 56px;
  }
  .hero-art {
    height: 310px;
    order: -1;
  }
  .hero-copy {
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(36px, 8vw, 52px);
  }
  .hero-foot {
    margin-top: 38px;
  }
  .catalog-section {
    padding-block: 58px;
  }
  .catalog-heading {
    align-items: start;
  }
  .catalog-controls {
    display: block;
  }
  .search-box {
    width: 100%;
    margin-bottom: 13px;
  }
  .filter-strip {
    gap: 6px;
  }
  .how-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 60px;
  }
  .steps {
    gap: 12px;
  }
  .site-footer .wrap {
    display: block;
  }
  .site-footer .wrap > div:last-child {
    justify-content: space-between;
    margin-top: 20px;
  }
}
@media (max-width: 520px) {
  .brand {
    font-size: 14px;
  }
  .brand-mark {
    transform: scale(0.8);
    transform-origin: left center;
    width: 30px;
  }
  .site-header nav a {
    font-size: 11px;
  }
  .member-label {
    display: none;
  }
  .header-actions .button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }
  .hero-art {
    height: 275px;
  }
  .voxel-back {
    left: 15%;
  }
  .voxel-mid {
    left: 41%;
  }
  .voxel-front {
    left: 46%;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-foot {
    gap: 13px;
  }
  .catalog-heading {
    display: block;
  }
  .count-pill {
    display: inline-block;
    margin-top: 18px;
  }
  .item-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .steps strong {
    margin: 10px 0 7px;
  }
  .modal {
    padding: 21px;
  }
  .detail-actions {
    flex-direction: column;
  }
}
.button[hidden] {
  display: none;
}
