@font-face {
  font-family: "PixelMplus12";
  src: url("assets/fonts/pixelmplus12-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "PixelMplus12";
  src: url("assets/fonts/pixelmplus12-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: block;
}

:root[data-theme="homepage"] {
  --hp-scale: 1;
  --hp-font: "PixelMplus12", "MS PGothic", "ＭＳ Ｐゴシック", Osaka, "Yu Gothic", sans-serif;
  --hp-column: #ffffff;
  --hp-text: #000000;
  --hp-muted: #444444;
  --hp-panel: color-mix(in oklch, var(--seed) 5%, #ffffff);
  --hp-panel-border: color-mix(in oklch, var(--seed) 40%, #ffffff);
  --hp-dash: color-mix(in oklch, var(--seed) 25%, #ffffff);
  --hp-greeting: #cc0066;
  --hp-shadow: #ffcc00;
  --hp-face: #c0c0c0;
  --hp-face-text: #000000;
  --hp-inset-dark: #808080;
  --hp-inset-light: #ffffff;
  --hp-ok: #006b2d;
  --hp-ok-box: #339933;
  --hp-danger: #b00000;
  --hp-danger-box: #cc0000;
  --hp-danger-soft: #fff0f0;
  --hp-warn: #7a4a00;
  --hp-warn-box: #888888;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="homepage"]:not([data-scheme]) {
    --hp-column: #111214;
    --hp-text: #e8e8ee;
    --hp-muted: #a9abb8;
    --hp-panel: color-mix(in oklch, var(--seed) 6%, #181a20);
    --hp-panel-border: color-mix(in oklch, var(--seed) 35%, #2a2c34);
    --hp-dash: color-mix(in oklch, var(--seed) 20%, #2a2c34);
    --hp-greeting: #ff7ab8;
    --hp-shadow: color-mix(in oklch, var(--seed) 28%, #000000);
    --hp-face: #3a3c44;
    --hp-face-text: #f0f0f4;
    --hp-inset-dark: #000000;
    --hp-inset-light: #4a4c55;
    --hp-ok: #5fe08f;
    --hp-ok-box: #2f8f3f;
    --hp-danger: #ff7a7a;
    --hp-danger-box: #cc0000;
    --hp-danger-soft: #2a1215;
    --hp-warn: #f0c060;
    --hp-warn-box: #666666;
  }
}

:root[data-theme="homepage"][data-scheme="dark"] {
  --hp-column: #111214;
  --hp-text: #e8e8ee;
  --hp-muted: #a9abb8;
  --hp-panel: color-mix(in oklch, var(--seed) 6%, #181a20);
  --hp-panel-border: color-mix(in oklch, var(--seed) 35%, #2a2c34);
  --hp-dash: color-mix(in oklch, var(--seed) 20%, #2a2c34);
  --hp-greeting: #ff7ab8;
  --hp-shadow: color-mix(in oklch, var(--seed) 28%, #000000);
  --hp-face: #3a3c44;
  --hp-face-text: #f0f0f4;
  --hp-inset-dark: #000000;
  --hp-inset-light: #4a4c55;
  --hp-ok: #5fe08f;
  --hp-ok-box: #2f8f3f;
  --hp-danger: #ff7a7a;
  --hp-danger-box: #cc0000;
  --hp-danger-soft: #2a1215;
  --hp-warn: #f0c060;
  --hp-warn-box: #666666;
}

html[data-theme="homepage"] {
  background: #050b2b;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='232' height='208' shape-rendering='crispEdges'%3E%3Crect x='38' y='52' width='5' height='1' fill='%23aabbff'/%3E%3Crect x='40' y='50' width='1' height='5' fill='%23aabbff'/%3E%3Crect x='40' y='52' width='1' height='1' fill='%23fff'/%3E%3Crect x='183' y='150' width='7' height='1' fill='%237788dd'/%3E%3Crect x='186' y='147' width='1' height='7' fill='%237788dd'/%3E%3Crect x='185' y='150' width='3' height='1' fill='%23fff'/%3E%3Crect x='186' y='149' width='1' height='3' fill='%23fff'/%3E%3Crect x='186' y='150' width='1' height='1' fill='%23fff'/%3E%3Crect x='148' y='24' width='5' height='1' fill='%23ffe9a8'/%3E%3Crect x='150' y='22' width='1' height='5' fill='%23ffe9a8'/%3E%3Crect x='150' y='24' width='1' height='1' fill='%23fff'/%3E%3Crect x='90' y='178' width='5' height='1' fill='%23aabbff'/%3E%3Crect x='92' y='176' width='1' height='5' fill='%23aabbff'/%3E%3Crect x='92' y='178' width='1' height='1' fill='%23fff'/%3E%3Crect x='17' y='120' width='7' height='1' fill='%238f7fe0'/%3E%3Crect x='20' y='117' width='1' height='7' fill='%238f7fe0'/%3E%3Crect x='19' y='120' width='3' height='1' fill='%23fff'/%3E%3Crect x='20' y='119' width='1' height='3' fill='%23fff'/%3E%3Crect x='20' y='120' width='1' height='1' fill='%23fff'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' shape-rendering='crispEdges'%3E%3Crect x='12' y='23' width='1' height='1' fill='%23fff'/%3E%3Crect x='87' y='9' width='1' height='1' fill='%23fff'/%3E%3Crect x='141' y='52' width='1' height='1' fill='%23fff'/%3E%3Crect x='33' y='98' width='1' height='1' fill='%23fff'/%3E%3Crect x='119' y='131' width='1' height='1' fill='%23fff'/%3E%3Crect x='64' y='147' width='1' height='1' fill='%23fff'/%3E%3Crect x='150' y='110' width='1' height='1' fill='%23fff'/%3E%3Crect x='51' y='61' width='1' height='1' fill='%238fa8ff'/%3E%3Crect x='103' y='84' width='1' height='1' fill='%238fa8ff'/%3E%3Crect x='8' y='133' width='1' height='1' fill='%238fa8ff'/%3E%3Crect x='129' y='17' width='1' height='1' fill='%238fa8ff'/%3E%3Crect x='76' y='112' width='1' height='1' fill='%23ffe9a8'/%3E%3Crect x='96' y='40' width='2' height='2' fill='%23dfe6ff'/%3E%3Crect x='22' y='142' width='2' height='2' fill='%23fff'/%3E%3Crect x='137' y='88' width='2' height='2' fill='%23ffe9a8'/%3E%3Crect x='58' y='4' width='2' height='2' fill='%23dfe6ff'/%3E%3Crect x='4' y='57' width='2' height='2' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-font-smoothing: none;
  font-smooth: never;
}

[data-theme="homepage"] .modern-only {
  display: none !important;
}

[data-theme="homepage"] body {
  padding: 24px 0;
  background: transparent;
  color: var(--hp-text);
  font-family: var(--hp-font);
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(20px * var(--hp-scale));
}

[data-theme="homepage"] code,
[data-theme="homepage"] input,
[data-theme="homepage"] button {
  font-family: var(--hp-font);
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] :focus-visible {
  outline: 2px dotted var(--ink);
  outline-offset: 2px;
}

[data-theme="homepage"] a {
  color: var(--ink);
  text-underline-offset: 2px;
}

[data-theme="homepage"] p {
  margin: 0 0 8px;
}

[data-theme="homepage"] .page {
  --hp-col: min(720px, calc(100% - 32px));
  width: var(--hp-col);
  max-width: none;
  margin: 0 auto;
  padding: 20px 16px 24px;
  background: var(--hp-column);
  border: 2px solid var(--seed);
  box-shadow: 3px 3px 0 rgb(0 0 0 / 45%);
}

@supports (width: round(down, 50%, 2px)) {
  [data-theme="homepage"] .page {
    --hp-col: round(down, min(720px, calc(100% - 32px)), 2px);
    margin-left: round(down, calc((100% - var(--hp-col)) / 2), 1px);
    margin-right: auto;
  }
}

[data-theme="homepage"] .hero {
  margin: 0;
  padding: 4px 8px 12px;
  text-align: center;
}

[data-theme="homepage"] .greeting {
  margin: 0 0 6px;
  color: var(--hp-greeting);
}

[data-theme="homepage"] h1 {
  margin: 0 0 8px;
  font-size: calc(24px * var(--hp-scale));
  line-height: calc(32px * var(--hp-scale));
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--hp-shadow);
}

[data-theme="homepage"] h2 {
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(20px * var(--hp-scale));
  font-weight: 700;
  color: var(--ink);
}

[data-theme="homepage"] .lead {
  max-width: none;
  margin: 0;
  font-size: calc(12px * var(--hp-scale));
  color: var(--hp-muted);
}

[data-theme="homepage"] .rainbow {
  height: 5px;
  margin: 10px 0;
  background: repeating-linear-gradient(
    90deg,
    #ff0000 0 8%,
    #ff9900 8% 16%,
    #ffee00 16% 24%,
    #33cc33 24% 32%,
    #3399ff 32% 40%,
    #6633cc 40% 48%,
    #ff0000 48% 56%,
    #ff9900 56% 64%,
    #ffee00 64% 72%,
    #33cc33 72% 80%,
    #3399ff 80% 88%,
    #6633cc 88% 100%
  );
}

[data-theme="homepage"] .marquee {
  overflow: hidden;
  margin: 0 0 12px;
  padding: 4px 0;
  background: #000033;
  border: 1px solid #000000;
}

[data-theme="homepage"] .marquee-track {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  color: #ffff00;
  font-weight: 700;
  animation: hp-marquee 18s linear infinite;
}

@keyframes hp-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@property --hp-marquee-x {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}

@keyframes hp-marquee-snapped {
  from {
    --hp-marquee-x: 0%;
  }

  to {
    --hp-marquee-x: -100%;
  }
}

/* An animated transform lands on half pixels and blurs the bitmap font, so the offset is rounded before it reaches the transform. */
@supports (transform: translateX(round(-100%, 1px))) {
  [data-theme="homepage"] .marquee-track {
    animation-name: hp-marquee-snapped;
    transform: translateX(round(var(--hp-marquee-x), 1px));
  }
}

[data-theme="homepage"] .sitemenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

[data-theme="homepage"] .card,
[data-theme="homepage"] .block {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--hp-panel);
  border: 1px solid var(--hp-panel-border);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="homepage"] .key-head {
  margin-bottom: 6px;
}

[data-theme="homepage"] .eyebrow {
  font-size: calc(12px * var(--hp-scale));
  letter-spacing: 0;
  color: var(--ink);
}

[data-theme="homepage"] .copy-row {
  gap: 8px;
}

[data-theme="homepage"] .key {
  padding: 6px 8px;
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(20px * var(--hp-scale));
  background: var(--hp-column);
  color: var(--hp-text);
  border: 2px solid var(--seed);
  border-radius: 0;
}

[data-theme="homepage"] .note {
  margin: 6px 0 0;
  font-size: calc(12px * var(--hp-scale));
  color: var(--hp-muted);
}

[data-theme="homepage"] details.hex {
  margin-top: 8px;
}

[data-theme="homepage"] details.hex summary {
  font-size: calc(12px * var(--hp-scale));
  color: var(--ink);
}

[data-theme="homepage"] .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: calc(12px * var(--hp-scale));
  font-weight: 700;
  border: 1px solid #000000;
  border-radius: 0;
  background: var(--hp-face);
  color: var(--hp-face-text);
  box-shadow: inset -2px -2px 0 rgb(0 0 0 / 35%), inset 2px 2px 0 rgb(255 255 255 / 55%);
  transition: none;
}

[data-theme="homepage"] .btn:hover {
  background: var(--hp-face);
  filter: brightness(1.06);
}

[data-theme="homepage"] .btn:active {
  transform: none;
  box-shadow: inset 2px 2px 0 rgb(0 0 0 / 35%), inset -2px -2px 0 rgb(255 255 255 / 30%);
}

[data-theme="homepage"] .btn-primary,
[data-theme="homepage"] .btn-primary:hover {
  background: var(--seed);
  color: var(--on-seed);
}

[data-theme="homepage"] .btn.is-copied {
  background: var(--hp-ok-box);
  color: #ffffff;
}

[data-theme="homepage"] .badge {
  gap: 6px;
  padding: 2px 6px 2px 2px;
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(18px * var(--hp-scale));
  border: 1px solid var(--hp-panel-border);
  border-radius: 0;
  background: var(--hp-column);
  color: var(--hp-muted);
}

[data-theme="homepage"] .badge-id {
  font-family: var(--hp-font);
  color: var(--hp-text);
}

[data-theme="homepage"] .badge-icon {
  width: 36px;
  height: 16px;
  border-radius: 0;
  border: 1px solid #000000;
  font-size: calc(12px * var(--hp-scale));
  font-weight: 700;
  background: var(--hp-warn-box);
  color: #ffffff;
}

[data-theme="homepage"] .badge-icon::before {
  content: "...";
}

[data-theme="homepage"] .badge[data-state="verified"] {
  border-color: var(--hp-ok-box);
  background: var(--hp-column);
  color: var(--hp-ok);
}

[data-theme="homepage"] .badge[data-state="verified"] .badge-icon {
  background: var(--hp-ok-box);
}

[data-theme="homepage"] .badge[data-state="verified"] .badge-icon::before {
  content: "OK";
}

[data-theme="homepage"] .badge[data-state="mismatch"],
[data-theme="homepage"] .badge[data-state="invalid"] {
  border-color: var(--hp-danger-box);
  background: var(--hp-column);
  color: var(--hp-danger);
}

[data-theme="homepage"] .badge[data-state="mismatch"] .badge-icon,
[data-theme="homepage"] .badge[data-state="invalid"] .badge-icon {
  background: var(--hp-danger-box);
  color: #ffff00;
}

[data-theme="homepage"] .badge[data-state="mismatch"] .badge-icon {
  animation: hp-blink 1s steps(1) infinite;
}

[data-theme="homepage"] .badge[data-state="mismatch"] .badge-icon::before,
[data-theme="homepage"] .badge[data-state="invalid"] .badge-icon::before {
  content: "NG";
}

[data-theme="homepage"] .badge[data-state="error"] {
  border-color: var(--hp-warn-box);
  background: var(--hp-column);
  color: var(--hp-warn);
}

[data-theme="homepage"] .badge[data-state="error"] .badge-icon::before {
  content: "??";
}

@keyframes hp-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.35;
  }
}

[data-theme="homepage"] .alert {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: calc(12px * var(--hp-scale));
  border: 2px solid var(--hp-danger-box);
  border-radius: 0;
  background: var(--hp-danger-soft);
  color: var(--hp-text);
}

[data-theme="homepage"] .alert strong {
  color: var(--hp-danger);
}

[data-theme="homepage"] .alert strong::before {
  content: "！ ";
}

[data-theme="homepage"] .block-head {
  gap: 8px;
  margin-bottom: 6px;
}

[data-theme="homepage"] .num {
  width: 20px;
  height: 20px;
  font-family: var(--hp-font);
  font-size: calc(12px * var(--hp-scale));
  font-weight: 700;
  box-shadow: 2px 2px 0 #000000;
}

[data-theme="homepage"] .terminal {
  padding: 8px;
  background: #000000;
  color: #00ff00;
  border: 1px solid #444444;
  border-radius: 0;
}

[data-theme="homepage"] .btn {
  line-height: calc(16px * var(--hp-scale));
}

[data-theme="homepage"] .color span {
  line-height: calc(16px * var(--hp-scale));
}

[data-theme="homepage"] .placeholder {
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(20px * var(--hp-scale));
}

[data-theme="homepage"] .terminal code {
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(20px * var(--hp-scale));
}

[data-theme="homepage"] .prompt {
  color: #00aa00;
}

[data-theme="homepage"] .window {
  margin-top: 8px;
  box-shadow: inset 1px 1px 0 var(--bevel-hi), inset -1px -1px 0 var(--bevel-lo), 3px 3px 0 rgb(0 0 0 / 35%);
}

[data-theme="homepage"] .window-title,
[data-theme="homepage"] .window-count {
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] .tabs [role="tab"],
[data-theme="homepage"] .btn-95 {
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] .step-title {
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] .caption {
  min-height: 84px;
  padding: 10px 12px;
  font-size: calc(12px * var(--hp-scale));
  line-height: calc(20px * var(--hp-scale));
}

[data-theme="homepage"] .caption code {
  padding: 0 4px;
  border-radius: 0;
}

[data-theme="homepage"] .btn-95 span {
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] .install {
  margin: 0 0 12px;
  text-align: center;
}

[data-theme="homepage"] .btn-large {
  min-height: 36px;
  padding: 0 16px;
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] .form {
  gap: 16px;
}

[data-theme="homepage"] .field > label,
[data-theme="homepage"] .field legend,
[data-theme="homepage"] .check {
  font-size: calc(12px * var(--hp-scale));
}

[data-theme="homepage"] .field > label,
[data-theme="homepage"] .field legend {
  color: var(--ink);
}

[data-theme="homepage"] .req,
[data-theme="homepage"] .opt {
  border-radius: 0;
  font-size: calc(12px * var(--hp-scale));
  vertical-align: 0;
}

[data-theme="homepage"] .field input[type="text"] {
  min-height: 32px;
  font-family: var(--hp-font);
  padding: 4px 6px;
  font-size: calc(12px * var(--hp-scale));
  border: 2px solid;
  border-color: var(--hp-inset-dark) var(--hp-inset-light) var(--hp-inset-light) var(--hp-inset-dark);
  border-radius: 0;
  background: var(--hp-column);
  color: var(--hp-text);
}

[data-theme="homepage"] .field input[aria-invalid="true"] {
  border-color: var(--hp-danger-box);
  box-shadow: none;
}

[data-theme="homepage"] .field-msg {
  font-size: calc(12px * var(--hp-scale));
  color: var(--hp-muted);
}

[data-theme="homepage"] .field-msg[data-state="error"] {
  color: var(--hp-danger);
}

[data-theme="homepage"] .field-msg[data-state="ok"] {
  color: var(--hp-ok);
}

[data-theme="homepage"] .check input {
  width: 13px;
  height: 13px;
}

[data-theme="homepage"] .color {
  font-size: calc(12px * var(--hp-scale));
  border-color: var(--hp-panel-border);
  border-radius: 0;
  background: var(--hp-column);
}

[data-theme="homepage"] .color input {
  border-radius: 0;
}

[data-theme="homepage"] .result {
  margin-top: 0;
}

[data-theme="homepage"] .foot {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding-top: 4px;
  border-top: 0;
  font-size: calc(12px * var(--hp-scale));
  color: var(--hp-muted);
  text-align: center;
}

[data-theme="homepage"] .foot p {
  margin: 0;
}

[data-theme="homepage"] .counter {
  display: inline-flex;
  padding: 2px 4px;
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: calc(13px * var(--hp-scale));
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid #444444;
}

[data-theme="homepage"] .banner-link {
  display: block;
  line-height: 0;
}

[data-theme="homepage"] .banner-link img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}

@media (max-width: 560px) {
  [data-theme="homepage"] body {
    padding: 8px 0;
  }

  [data-theme="homepage"] .page {
    --hp-col: calc(100% - 16px);
    padding: 14px 10px 20px;
  }

  @supports (width: round(down, 50%, 2px)) {
    [data-theme="homepage"] .page {
      --hp-col: round(down, calc(100% - 16px), 2px);
    }
  }

  [data-theme="homepage"] .card,
  [data-theme="homepage"] .block {
    padding: 10px 8px;
  }

  [data-theme="homepage"] .caption {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="homepage"] .marquee-track {
    animation: none;
    transform: none;
    padding-left: 8px;
  }

  [data-theme="homepage"] .badge-icon {
    animation: none;
  }
}

[data-theme="homepage"] .eyebrow-sub {
  font-family: var(--hp-font);
}

[data-theme="homepage"] .result-hint {
  margin-top: 0;
}

[data-theme="homepage"] .field-label {
  font-size: calc(12px * var(--hp-scale));
  color: var(--ink);
}

[data-theme="homepage"] .segmented .btn,
[data-theme="homepage"] .segmented .btn:first-child,
[data-theme="homepage"] .segmented .btn:last-child {
  border-radius: 0;
}

[data-theme="homepage"] .segmented .btn[aria-pressed="true"] {
  background: var(--seed);
  color: var(--on-seed);
  border-color: #000000;
  box-shadow: inset 2px 2px 0 rgb(0 0 0 / 35%), inset -2px -2px 0 rgb(255 255 255 / 30%);
}

[data-theme="homepage"] .banner-corner {
  margin-top: 10px;
}

[data-theme="homepage"] .banner-corner-title {
  font-size: calc(12px * var(--hp-scale));
  color: var(--ink);
}

[data-theme="homepage"] .banner-grid {
  gap: 8px;
}

[data-theme="homepage"] .banner-item {
  padding: 8px;
  gap: 6px;
  border-color: var(--hp-panel-border);
  border-radius: 0;
  background: var(--hp-column);
}

[data-theme="homepage"] .banner-preview {
  border-radius: 0;
  background: var(--hp-panel);
}

[data-theme="homepage"] .banner-preview img {
  image-rendering: pixelated;
}

[data-theme="homepage"] .banner-corner-title {
  margin-bottom: 2px;
}

[data-theme="homepage"] .banner-corner-note {
  margin: 0 0 8px;
  font-size: calc(12px * var(--hp-scale));
  color: var(--hp-muted);
}

[data-theme="homepage"] .banner-actions {
  gap: 6px;
}
