:root {
  color-scheme: light;
  --ink: #16131a;
  --muted: #716c73;
  --paper: #f2eee9;
  --accent: #db315d;
  --blue: #5979ff;
  --line: rgba(22, 19, 26, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 72% 35%, rgba(255,255,255,.96) 0 15%, rgba(255,255,255,0) 41%), linear-gradient(135deg, var(--paper) 0%, #eee8e3 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 76px;
  padding: 0 clamp(24px, 4vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 233, 0.78);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 800; letter-spacing: .18em; }
.brand-orbit { position: relative; width: 29px; aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transform: rotate(-24deg); }
.brand-orbit::after { content: ""; position: absolute; width: 38px; height: 12px; border: 1px solid var(--ink); border-radius: 50%; }
.brand-orbit i { width: 7px; aspect-ratio: 1; background: var(--accent); border-radius: 50%; }
.prototype-label { margin: 0; color: var(--muted); font: 600 11px/1 monospace; letter-spacing: .2em; }
.system-status { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #d99634; box-shadow: 0 0 0 5px rgba(217,150,52,.12); }
.system-status.is-ready i { background: #2fa86f; box-shadow: 0 0 0 5px rgba(47,168,111,.12); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 76px 0 0;
  overflow: hidden;
}
.section-no { margin: 0 0 22px; color: var(--accent); font: 700 11px/1.2 monospace; letter-spacing: .2em; }

.character-stage { position: absolute; z-index: 3; inset: 76px 0 0; display: grid; place-items: center; }
.stage-halo { position: absolute; width: min(46vw, 650px); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(234,218,217,.52)); box-shadow: inset 0 0 80px rgba(255,255,255,.85), 0 45px 100px rgba(75,55,73,.08); }
.stage-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(22,19,26,.13); pointer-events: none; }
.ring-one { width: min(51vw, 720px); aspect-ratio: 1; animation: orbit 22s linear infinite; }
.ring-one::after { content:""; position:absolute; top: 15%; left: 9%; width: 11px; aspect-ratio:1; border-radius:50%; background:var(--blue); box-shadow:0 0 0 7px rgba(89,121,255,.1); }
.ring-two { width: min(39vw, 540px); aspect-ratio: 1; border-style: dashed; animation: orbit 31s linear infinite reverse; }
#live2d-frame { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.model-tag { position: absolute; z-index: 5; right: clamp(24px, 4vw, 68px); bottom: 5%; padding: 11px 14px; border: 1px solid var(--line); background: rgba(246,242,238,.82); backdrop-filter: blur(10px); }
.model-tag span { display:block; font: 700 10px/1 monospace; letter-spacing:.15em; }
.model-tag small { display:block; margin-top:6px; color:var(--muted); font-size:10px; }

.prototype { min-height: 82vh; padding: 130px clamp(24px, 8vw, 136px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: start; background: #17141b; color: #f5f1ed; }
.prototype h2 { margin:0; font-family:Georgia,"Noto Serif SC",serif; font-size:clamp(38px,5vw,76px); line-height:1.12; font-weight:400; letter-spacing:-.04em; }
.prototype-grid { display:grid; border-top:1px solid rgba(255,255,255,.18); }
.prototype article { display:grid; grid-template-columns:54px 130px 1fr; gap:18px; align-items:start; padding:28px 0; border-bottom:1px solid rgba(255,255,255,.18); }
.prototype article span { color:#f26a8b; font:700 10px/1 monospace; letter-spacing:.15em; }
.prototype h3 { margin:0; font-size:17px; }
.prototype article p { margin:0; color:#aaa4ad; font-size:14px; line-height:1.75; }
footer { padding:30px clamp(24px,6vw,100px); display:grid; grid-template-columns:auto 1fr; gap:40px; color:var(--muted); background:#17141b; border-top:1px solid rgba(255,255,255,.1); font-size:10px; line-height:1.6; }
footer p { margin:0; }
.live2d-notice { justify-self:end; max-width:760px; text-align:right; }

@keyframes orbit { to { transform:rotate(360deg); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns:1fr auto; }
  .prototype-label { display:none; }
  .hero { min-height:100svh; padding-top:76px; }
  .character-stage { inset:76px -18% 0 -18%; }
  .stage-halo { width:min(96vw,620px); }
  .ring-one { width:min(108vw,690px); }
  .ring-two { width:min(80vw,520px); }
  .model-tag { right:18%; bottom:5%; }
  .prototype { grid-template-columns:1fr; padding-top:90px; }
  .prototype-grid { margin-top:20px; }
  .prototype article { grid-template-columns:48px 1fr; }
  .prototype article p { grid-column:2; }
  footer { grid-template-columns:1fr; }
  .live2d-notice { justify-self:start; text-align:left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .stage-ring { animation:none; }
}
