/* KORROGLYPH の値（AdditiveBass/src/ui/Theme.h を正とする） */
:root {
  --ground: #0d0d0f;
  --sunken: #08080a;
  --panel: #161619;
  --seam: #26262b;
  --edge: #3b3b43;
  --text: #f1f0ea;
  --muted: #8a8a93;
  --faint: #46464f;
  --orange: #ff5519;
}

/* 書体は 3 役。ブランドの言葉（Kryvane）は輪郭にしたロゴだけなので、フォントは 2 つ */
@font-face { font-family: "Hudline"; src: url("/fonts/Hudline-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hudline"; src: url("/fonts/Hudline-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixel Cathode"; src: url("/fonts/PixelCathode.ttf") format("truetype"); font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--ground); color: var(--text); }

body {
  min-height: 100vh;
  font: 700 14px/1.4 "Hudline", system-ui, sans-serif;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  /* 背景の方眼：40 px、太い線は 160 px、その交点に十字 */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 -4V4M-4 0H4M160 -4V4M156 0H164M0 156V164M-4 160H4M160 156V164M156 160H164' stroke='%2346464f' stroke-width='1'/%3E%3C/svg%3E") -0.5px -0.5px / 160px 160px,
    linear-gradient(to right, rgba(241, 240, 234, 0.035) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(to bottom, rgba(241, 240, 234, 0.035) 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(to right, rgba(241, 240, 234, 0.016) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(241, 240, 234, 0.016) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--ground);
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.num {
  font: 400 13.5px/1 "Pixel Cathode", ui-monospace, monospace;
  letter-spacing: 0.06em;
}

/* 1280 × 800 の設計の枠。左右 16 px の余白に GLYPH を置く */
.frame {
  position: relative;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

.margin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--seam);
}

.maker { font-size: 15px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.lamp {
  width: 8px;
  height: 8px;
  background: var(--orange);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 64px 0;
}

/* About と同じ組み方：左に腐食のディザと印章、右にロゴ、罫線、VERSION */
.card {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 268px;
  background: var(--panel);
  border: 1px solid var(--seam);
}

.art {
  position: relative;
  background: var(--sunken);
  border-left: 3px solid var(--orange);
  overflow: hidden;
}

#corrosion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 124px;
  height: 124px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: 0 0 0 1px var(--seam), 0 0 0 6px rgba(13, 13, 15, 0.9);
}

.seal::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(241, 240, 234, 0.45);
}

.body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px 48px;
  border-top: 2px solid var(--orange);
}

.logo {
  width: min(100%, 560px);
  aspect-ratio: 9324 / 1554;
  background: var(--text);
  -webkit-mask: url("/img/korroglyph.svg") left center / contain no-repeat;
  mask: url("/img/korroglyph.svg") left center / contain no-repeat;
}

hr {
  border: 0;
  border-top: 1px solid var(--seam);
}

.what { font-size: 15px; }

.version {
  color: var(--orange);
  font-size: 13.5px;
}

/* 沈んだ表示：INIT のスペクトル */
.scope {
  position: relative;
  height: 220px;
  background: var(--sunken);
  border: 1px solid var(--seam);
}

.readout {
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--text);
  font-size: 9px;
}

#spectrum {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.foot {
  border-top: 1px solid var(--seam);
  border-bottom: 0;
  height: 56px;
  color: var(--muted);
  font-size: 9px;
}

.foot .num { font-size: 9px; }

@media (max-width: 760px) {
  .frame { padding: 0 24px; }
  .card { grid-template-columns: 1fr; }
  .art { height: 200px; border-left: 0; border-top: 3px solid var(--orange); }
  .body { padding: 28px 24px; border-top: 0; }
  .scope { height: 180px; }
  main { padding: 40px 0; gap: 24px; }
}
