/* 口令页（PX；M2a1 改成和孩子端一致的样子：第六版的夜空与小星球、半透明玻璃大卡、黄星星小宇、渐变珊瑚橙胶囊按钮）。
   没过口令时 /os/core/ 与 /os/art/ 都取不到（入口只放行 /gate 与 /os/gate/…），所以：
   - 配色照 core/tokens.css 的取值抄在这里（出处同 tokens.css：_dev/v6/home/home.css、base.html）；
   - 夜空 sky.svg 与小宇 xiaoyu.svg 是 os7/art/sky.svg、os7/art/xiaoyu-idle.svg 的副本（换图时两处一起换）。 */
:root {
  --sky: #2F3B8F;                       /* 夜空最深处（图没加载出来时的底色） */
  --ink: #22304A;                       /* 墨蓝文字 */
  --soft: #434C66;                      /* 玻璃卡里的次要字（同 --mu-ink-soft-glass） */
  --glass: rgba(255, 250, 242, .78);    /* 半透明大卡（同 --mu-glass，略加不透明，输入框周围的字更清楚） */
  --glass-ring: rgba(255, 255, 255, .6);
  --surface: #FFFFFF;
  --line: #EFE9DF;
  --coral-hi: #FFA07E;
  --coral-lo: #FF7A59;
  --coral-glow: rgba(255, 122, 89, .42);
  --press: inset 0 -4px 0 rgba(0, 0, 0, .08);
  --focus: rgba(255, 201, 77, .65);
  --placeholder: #737B90;
  --bad: #B23A22;                       /* 提示字：在玻璃卡上够深 */
  --shadow-glass: 0 22px 54px rgba(23, 28, 63, .2);
  --shadow-soft: 0 8px 20px rgba(34, 48, 74, .12);
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--sky) url("/os/gate/sky.svg") center bottom / cover no-repeat fixed;
  color: var(--ink);
  font: 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.gate {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}
.gate-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass);
  border-radius: 36px;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-glass), inset 0 0 0 1.5px var(--glass-ring);
  padding: 30px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
/* 小宇（第六版黄星星），轻轻浮着 */
.gate-logo {
  width: 96px; height: 96px; margin: 0 auto 6px;
  background: url("/os/gate/xiaoyu.svg") center / contain no-repeat;
  animation: gate-float 3.2s ease-in-out infinite;
}
.gate-logo span { display: none; }
@keyframes gate-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.gate-title { margin: 0 0 14px; font-size: 28px; font-weight: 850; letter-spacing: .02em; color: var(--ink); }
.gate-ask { font-size: 18px; font-weight: 650; color: var(--soft); margin-bottom: 12px; }
.gate-input {
  width: 100%;
  min-height: 56px;
  font: inherit; font-size: 20px; font-weight: 600;   /* 不小于 16px，手机上点进去不会自动放大 */
  text-align: center;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-soft);
  transition: box-shadow .25s;
}
.gate-input::placeholder { color: var(--placeholder); }
.gate-input:focus { box-shadow: 0 0 0 3px var(--focus), var(--shadow-soft); }
.gate-msg { min-height: 1.5em; margin: 10px 0 6px; color: var(--bad); font-size: 16px; font-weight: 700; }
.gate-go {
  min-height: 56px;
  font: inherit; font-size: 20px; font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--coral-hi), var(--coral-lo));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 10px 22px var(--coral-glow), var(--press);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.gate-go:active { transform: scale(.96); }
.gate-go:disabled { opacity: .6; cursor: default; }
.gate-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 700px) {
  body { font-size: 20px; }
  .gate-card { max-width: 460px; padding: 34px 40px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-logo { animation: none; }
  .gate-go { transition: none; }
}
