:root {
  color-scheme: light;
  --ink: #152746;
  --muted: #64748b;
  --accent: #2563eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: var(--ink);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 48px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.6px;
  font-family: ui-monospace, "Cascadia Code", Consolas, "Microsoft YaHei", monospace;
}
.wordmark img { image-rendering: pixelated; }
.wordmark-dot { color: var(--accent); }
.wordmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.header-note {
  color: #3b6dba;
  font: 12px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 2px;
}

main { display: grid; place-items: center; padding: 36px 24px 64px; }
.coming-soon { text-align: center; width: min(100%, 640px); }
.character-scene { position: relative; width: 240px; height: 236px; margin: 0 auto 28px; }
.character-scene::before {
  content: "";
  position: absolute;
  inset: 54px 20px 0;
  background-image: linear-gradient(#dbeafe 1px, transparent 1px), linear-gradient(90deg, #dbeafe 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 73%);
}
.character-scene::after {
  content: "";
  position: absolute;
  inset: 62px 27px 17px;
  background:
    linear-gradient(#93c5fd, #93c5fd) left top / 12px 2px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) left top / 2px 12px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) right top / 12px 2px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) right top / 2px 12px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) left bottom / 12px 2px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) left bottom / 2px 12px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) right bottom / 12px 2px no-repeat,
    linear-gradient(#93c5fd, #93c5fd) right bottom / 2px 12px no-repeat;
  pointer-events: none;
}
.speech-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  white-space: nowrap;
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  line-height: 1.5;
  color: #4e6a92;
}
.speech-bubble::before, .speech-bubble::after {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: #fff;
  border-right: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}
.speech-bubble::after { display: none; }
.pixel-friend {
  position: absolute;
  top: 44px;
  left: 40px;
  display: block;
  width: 160px;
  height: 192px;
  image-rendering: pixelated;
  z-index: 1;
}
.ground-shadow {
  position: absolute;
  left: 77px;
  bottom: 4px;
  width: 86px;
  height: 9px;
  background: #eaf1ff;
  clip-path: polygon(8% 0, 92% 0, 92% 25%, 100% 25%, 100% 75%, 92% 75%, 92% 100%, 8% 100%, 8% 75%, 0 75%, 0 25%, 8% 25%);
}

h1 { margin: 0; font-weight: 650; }
.site-name { display: block; margin-bottom: 12px; font-size: 19px; line-height: 1.6; font-weight: 500; color: #52729d; font-family: ui-monospace, "Cascadia Code", Consolas, "Microsoft YaHei", monospace; }
.title-line { display: block; font-size: clamp(32px, 5.5vw, 46px); line-height: 1.35; letter-spacing: 1px; }
.title-dot { color: var(--accent); }
.welcome { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; letter-spacing: .8px; }
.building-indicator { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.building-indicator span { width: 6px; height: 6px; background: #dbeafe; animation: building 2s steps(1, end) infinite; }
.building-indicator span:nth-child(2) { animation-delay: .2s; }
.building-indicator span:nth-child(3) { animation-delay: .4s; }
.building-indicator span:nth-child(4) { animation-delay: .6s; }
.building-indicator span:nth-child(5) { animation-delay: .8s; }
@keyframes building { 0%, 25% { background: var(--accent); } 26%, 100% { background: #dbeafe; } }
footer { text-align: center; padding: 20px 24px 28px; color: #7c8ca3; font: 12px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .5px; }

@media (max-width: 480px) {
  .site-header { padding: 24px; gap: 12px; }
  .wordmark { font-size: 18px; }
  .header-note { font-size: 11px; letter-spacing: 1.4px; }
  main { padding: 28px 20px 44px; }
  .character-scene { margin-bottom: 24px; }
  .welcome { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .building-indicator span:nth-child(-n+3) { background: var(--accent); }
}
