#app {
  --page: #e9eef6;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --surface-3: #dfe8f6;
  --border: #e2e9f3;
  --border-soft: #eaf0f8;
  --ink: #172038;
  --muted: #5c6780;
  --dim: #626b80;
  --primary: #3a63c8;
  --primary-ink: #ffffff;
  --primary-glow: rgba(58, 99, 200, .28);
  --teal: #0f766e;
  --amber: #b8791f;
  --amber-edge: #e0b464;
  --amber-ink: #8a5f12;
  --amber-fill: #fdf6e7;
  --sea: #aadaff;
  --land: #eef2f8;
  --coast: rgba(23, 32, 56, .28);
  --grat: rgba(23, 32, 56, .06);
  --shadow-sm: 0 1px 2px rgba(23, 32, 56, .06);
  --shadow-md: 0 6px 18px rgba(23, 32, 56, .10);
  --shadow-lg: 0 10px 28px rgba(23, 32, 56, .14);
  --ring: rgba(58, 99, 200, .45);
  --lg1: #1e87b8;
  --lg2: #0f8a60;
  --lg3: #a67c00;
  --lg4: #d2650a;
  --lg5: #cf2f30;
  --lg6: #b01e1e;
  --lg7: #7a22b8;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-block: 16px;
  --radius-pill: 999px;
  --paper: var(--surface);
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --edge: var(--border);
  --faint: var(--border-soft);
  --link: var(--primary);
  --spot: var(--amber);
}

#app[data-theme=dark] {
  --page: #090b1e;
  --surface: #141935;
  --surface-2: #1d244a;
  --surface-3: #313d6e;
  --border: #232b52;
  --border-soft: #1b2246;
  --ink: #ffffff;
  --muted: #9aa3bd;
  --dim: #8e97b0;
  --primary: #3a73b3;
  --primary-ink: #ffffff;
  --primary-glow: rgba(58, 115, 179, .38);
  --teal: #5ee3c8;
  --amber: #e9a13b;
  --amber-edge: #c9873a;
  --amber-ink: #e8b765;
  --amber-fill: #2a241d;
  --sea: #17263c;
  --land: #242f3e;
  --coast: rgba(241, 239, 236, .30);
  --grat: rgba(255, 255, 255, .05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .30);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .34);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, .42);
  --ring: rgba(122, 170, 225, .55);
  --lg1: #56b0d6;
  --lg2: #62d3a2;
  --lg3: #f6d46f;
  --lg4: #e68722;
  --lg5: #da3f40;
  --lg6: #c62e2e;
  --lg7: #8b2fd0;
}

#app {
  --font-ui: Archivo, Noto Sans JP, system-ui, sans-serif;
  --font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, monospace;
  --shindo-0: #c8c8cb;
  --shindo-ink-0: #1a1d24;
  --shindo-dark-0: 0;
  --shindo-1: #56b0d6;
  --shindo-ink-1: #06212e;
  --shindo-dark-1: 0;
  --shindo-2: #62d3a2;
  --shindo-ink-2: #052419;
  --shindo-dark-2: 0;
  --shindo-3: #f6d46f;
  --shindo-ink-3: #2b2206;
  --shindo-dark-3: 0;
  --shindo-4: #e68722;
  --shindo-ink-4: #1a1205;
  --shindo-dark-4: 0;
  --shindo-5: #da3f40;
  --shindo-ink-5: #ffffff;
  --shindo-dark-5: 1;
  --shindo-6: #c62e2e;
  --shindo-ink-6: #ffffff;
  --shindo-dark-6: 1;
  --shindo-7: #a32222;
  --shindo-ink-7: #ffffff;
  --shindo-dark-7: 1;
  --shindo-8: #8b2fd0;
  --shindo-ink-8: #ffffff;
  --shindo-dark-8: 1;
  --shindo-9: #6c07b4;
  --shindo-ink-9: #ffffff;
  --shindo-dark-9: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Archivo, "Noto Sans JP", system-ui, sans-serif;
  font-family: Archivo, "Noto Sans JP", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Archivo, "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

::selection {
  background: var(--surface-3);
}

.jp {
  font-family: "Noto Sans JP", Archivo, sans-serif;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums lining-nums;
}

.pill {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-family: Archivo, "Noto Sans JP", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}
.pill:hover:not(:disabled) {
  background: var(--surface-3);
}
.pill:disabled {
  opacity: 0.45;
  cursor: default;
}
.pill .badge {
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 10.5px;
}
.pill svg {
  flex: none;
}
.pill:is(a) {
  text-decoration: none;
}

.pill-primary {
  background: var(--primary);
  border-color: transparent;
  color: var(--primary-ink);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--primary-glow), 0 6px 18px var(--primary-glow);
}
.pill-primary:hover:not(:disabled) {
  background: var(--primary);
  filter: brightness(1.08);
}

.pill-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.pill-group button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  white-space: nowrap;
  font-family: Archivo, "Noto Sans JP", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  font-weight: 600;
  font-size: 12px;
}
.pill-group button[aria-pressed=true] {
  background: var(--surface-3);
  color: var(--ink);
}
.pill-group button:hover:not([aria-pressed=true]):not(:disabled) {
  color: var(--ink);
}
.pill-group.pill-group--fill {
  width: 100%;
  height: 34px;
}
.pill-group.pill-group--fill button {
  flex: 1;
  min-width: 0;
}
.pill-group.pill-group--icon button {
  min-width: 40px;
  padding: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--muted);
}
.icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
}
@container (max-width: 900px) {
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

.dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 30;
  width: 318px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-block);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.dropdown[hidden] {
  display: none;
}
.dropdown .dd-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dropdown .dd-label {
  color: var(--dim);
  font-family: Archivo, "Noto Sans JP", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.ic {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}

.icx {
  width: 14px;
  height: 14px;
  flex: none;
  display: block;
  stroke: currentColor;
  fill: none;
}

#zin .icx,
#zout .icx {
  width: 17px;
  height: 17px;
}

.search .icx-q {
  width: 15px;
  height: 15px;
}

.search .x .icx {
  width: 18px;
  height: 18px;
}

.sprite {
  position: absolute;
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
    opacity: 1;
  }
  .toast {
    animation: none;
  }
  .skel i {
    animation: none;
    height: 22px;
    opacity: 0.5;
  }
  .contact-spin {
    animation: none;
  }
  .legend .sw,
  #mmore .car,
  .grip i,
  .epitip {
    transition: none;
  }
}
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch [aria-current] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 16px;
}
