:root {
  --bg: #EEF1F4;
  --panel: rgba(238, 241, 244, 0.86);
  --ink: #16263A;
  --muted: #4F5E70;
  --block: #C9D1DA;
  --block-set: #2F6FB0;
  --p1: #2F6FB0; --p2: #4FA3C7; --p3: #7C8FD6; --p4: #3BAA9C; --p5: #F2A541;
  --piece-alpha: 0.32;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101A26;
    --panel: rgba(16, 26, 38, 0.84);
    --ink: #E6ECF2;
    --muted: #9AA8B8;
    --block: #26364A;
    --block-set: #5A9BDD;
    --p1: #5A9BDD; --p2: #63C1E3; --p3: #9AA9F0; --p4: #4CC7B5; --p5: #F5B85E;
    --piece-alpha: 0.42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101A26;
  --panel: rgba(16, 26, 38, 0.84);
  --ink: #E6ECF2;
  --muted: #9AA8B8;
  --block: #26364A;
  --block-set: #5A9BDD;
  --p1: #5A9BDD; --p2: #63C1E3; --p3: #9AA9F0; --p4: #4CC7B5; --p5: #F5B85E;
  --piece-alpha: 0.42;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
}
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 30rem;
  width: 100%;
  padding: 2.75rem 2rem 2.5rem;
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 18px;
}
.wordmark {
  font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.wordmark .it { color: var(--block-set); }
.wordmark-sub {
  display: block;
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.01em;
}
.foundation {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: min(240px, 80%);
  margin: 2.5rem auto 1.5rem;
}
.foundation span {
  height: 10px;
  border-radius: 2px;
  background: var(--block);
}
.foundation span.set { background: var(--block-set); }
@media (prefers-reduced-motion: no-preference) {
  .foundation span.set { animation: lay 0.5s ease-out both; }
  .foundation span.set:nth-child(2) { animation-delay: 0.12s; }
  .foundation span.set:nth-child(3) { animation-delay: 0.24s; }
  .foundation span.set:nth-child(4) { animation-delay: 0.36s; }
  .foundation span.set:nth-child(5) { animation-delay: 0.48s; }
  @keyframes lay {
    from { background: var(--block); transform: translateY(-6px); }
    to   { background: var(--block-set); transform: none; }
  }
}
.note {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}