/* 此间 · night world of the short films: glowing hand-drawn lines, kai type, no boxes */
:root {
  --bg-1: #0a0e1c; --bg-2: #121a30; --ink: #f1ece0; --muted: #a7afc3; --amb: #ffcf7a; --blue: #a9d6ff;
  --f-kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --f-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --glow: 0 0 8px rgba(241, 236, 224, .55), 0 0 18px rgba(241, 236, 224, .22);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg-1); color: var(--ink); font-family: var(--f-body); overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stage { position: fixed; inset: 0; background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#world.dragging { cursor: grabbing; }
.top { position: absolute; left: max(20px, env(safe-area-inset-left)); top: max(18px, env(safe-area-inset-top)); display: flex; flex-direction: column; pointer-events: none; }
.name { font: 400 1.6rem/1.3 var(--f-kai); letter-spacing: .2em; text-shadow: var(--glow); }
.sub { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* the one kind of button: glowing words over a hand-drawn line */
.lb { position: relative; display: inline-flex; align-items: center; gap: 8px; font: 400 1rem/1.4 var(--f-kai); letter-spacing: .1em; color: var(--ink);
  background: none; border: 0; padding: 6px 12px 12px; cursor: pointer; text-shadow: var(--glow); min-height: 44px; }
.lb::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 7px; border-bottom: 1.6px solid currentColor; border-radius: 0 0 50% 45% / 0 0 100% 80%;
  opacity: .45; filter: drop-shadow(0 0 3px currentColor); transition: opacity .25s; }
.lb:hover::after { opacity: 1; }
.lb.main { font-size: 1.15rem; letter-spacing: .14em; }
.lb.main::after { opacity: .8; }
.lb.quiet { color: var(--muted); text-shadow: none; font-size: .9rem; }
.lb.quiet::after { opacity: .25; filter: none; }
.lb:disabled { opacity: .35; cursor: default; }
.lb:focus-visible, input:focus-visible { outline: 2px solid var(--amb); outline-offset: 3px; }
.spark { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px 1px var(--blue), 0 0 16px 4px rgba(241, 236, 224, .16); animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.85); opacity: .85; } 50% { transform: scale(1.15); opacity: 1; } }

/* asking: one question at a time, under the person */
.ask, .choose, .keep { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(86px, calc(env(safe-area-inset-bottom) + 70px)); width: min(620px, calc(100% - 32px));
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ask-q, .keep-q { margin: 0; font: 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.6 var(--f-kai); letter-spacing: .12em; text-shadow: var(--glow); }
.ask-chips, .choose { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; }
.choose { flex-direction: row; }
.ask-line { display: flex; align-items: center; gap: 10px; width: 100%; }
.ask-line input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(241, 236, 224, .35); color: var(--blue); text-shadow: 0 0 10px currentColor;
  font: 400 1.2rem/1.6 var(--f-kai); letter-spacing: .06em; padding: 6px 4px; text-align: center; }
.ask-line input::placeholder { color: rgba(241, 236, 224, .3); text-shadow: none; }
.keep-acts { display: flex; align-items: center; gap: 18px; }
.dock { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(26px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
.fine { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: space-between; gap: 12px; padding: 0 14px; font-size: .62rem; color: #7f88a0; pointer-events: none; }
.fine a { color: #7f88a0; text-decoration: none; pointer-events: auto; white-space: nowrap; }
@media (max-width: 640px) {
  .fine { flex-direction: column; align-items: flex-start; gap: 0; }
  .ask, .choose, .keep { bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px)); }
}
@media (prefers-reduced-motion: reduce) { .spark { animation: none; } }
