:root {
  color-scheme: dark;
  --cyan: #3ee0ff;
  --iris: #8b6cff;
  --text: #e8f4ff;
  --muted: #8aa0b5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05070d; color: var(--text); }
body { min-height: 100%; overflow: hidden; }
.stage { position: relative; height: 100%; display: flex; flex-direction: column; }
.brain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 18, 32, 0) 0%, rgba(5, 7, 13, 0.2) 42%, #05070d 78%);
  pointer-events: none;
}
.panel {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0.08em; }
.hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.6; }
.said {
  min-height: 48px;
  max-width: 320px;
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}
.gate { width: min(280px, 100%); display: flex; flex-direction: column; gap: 10px; }
input {
  width: 100%;
  border: 1px solid rgba(62, 224, 255, 0.35);
  background: rgba(8, 16, 28, 0.72);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
}
button {
  border: 0;
  border-radius: 999px;
  background: #e8f4ff;
  color: #071018;
  font: inherit;
  font-weight: 650;
  padding: 14px 28px;
}
button.hold {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #f4fbff, #9adfff 55%, #3ee0ff);
  box-shadow: 0 0 40px rgba(62, 224, 255, 0.35);
  font-size: 16px;
  touch-action: none;
  user-select: none;
}
button.hold.hot {
  background: radial-gradient(circle at 50% 40%, #fff, #c3b0ff 50%, #8b6cff);
  box-shadow: 0 0 48px rgba(139, 108, 255, 0.55);
}
.dead { color: #ff8b9a; }
#work { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hidden, #work.hidden { display: none; }
