/* 学神荣耀 — 三维版专用样式
 * 复用 ../css/style.css 的宣纸/墨/朱砂/鎏金语言，只处理 3D 画布布局与新控件
 */

/* ================= 画布区 ================= */
#stage3d {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #e9e2d3;
}
#field3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
/* 画布下缘一道纸色渐隐，与答题栏衔接 */
#stage3d::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 237, 226, 0), rgba(243, 237, 226, .55));
}

/* 网页外的纸纹罩一层，让 3D 也有宣纸质感 */
#stage3d::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 100, 70, .03) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 20% 15%, rgba(180, 160, 120, .10), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(120, 140, 130, .10), transparent 50%);
}

/* ================= 半透明场景（3D 版特色：城池在纸后若隐若现） ================= */
#scene-select,
#scene-subject,
#scene-duel,
#scene-rank,
#scene-honor,
#scene-tower,
#scene-wrong {
  background: linear-gradient(180deg, rgba(245, 240, 231, .93), rgba(243, 237, 226, .97));
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
}

/* 菜单：轻罩一层纸色，保证字读得清，又露出城郭 */
#scene-menu {
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(250, 246, 238, .62), rgba(250, 246, 238, .28) 45%, rgba(243, 237, 226, .72) 100%),
    linear-gradient(180deg, rgba(243, 237, 226, .55), rgba(243, 237, 226, .2) 40%, rgba(243, 237, 226, .66));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#scene-menu .menu-wrap {
  margin: auto;
  flex: 0 0 auto;
}

/* ================= 3D 标签 ================= */
.tag3d {
  display: inline-block;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: .22em;
  color: rgba(90, 78, 60, .72);
  border: 1px solid rgba(90, 78, 60, .28);
  border-radius: 99px;
  padding: 3px 10px 3px 12px;
  background: rgba(255, 255, 255, .4);
}

/* ================= HUD 补充 ================= */
#hud {
  background: linear-gradient(180deg, rgba(243, 237, 226, .94), rgba(243, 237, 226, .55) 62%, rgba(243, 237, 226, 0));
  padding-bottom: 12px;
}
.wave-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
  max-width: 112px;
}
.wave-dots i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: rgba(36, 33, 29, .26);
  transition: background .2s, transform .2s;
}
.wave-dots i.dead { background: rgba(63, 122, 82, .55); transform: scale(.82); }
.wave-dots i.live { background: rgba(178, 58, 44, .85); }
.wave-dots i.boss { background: #6d54a8; width: 10px; height: 10px; }

.speed-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.speed-btn.on {
  background: linear-gradient(145deg, #2b2823, #3d3830);
  color: #f6efe2;
  border-color: transparent;
}

/* 论道双城血条 */
#hud-duel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 220px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(36, 33, 29, .1);
  box-shadow: 0 2px 10px rgba(70, 55, 30, .08);
}
.hud-duel.hidden { display: none; }
#hud-duel .duel-row { display: flex; align-items: center; gap: 6px; }
#hud-duel .duel-lab {
  font-size: 10px;
  color: var(--ink-3);
  width: 12px;
  flex: 0 0 auto;
}
#hud-duel .duel-lab.foe { color: var(--red); }
#hud-duel .duel-bar {
  flex: 1 1 auto;
  height: 7px;
  border-radius: 99px;
  background: rgba(36, 33, 29, .1);
  overflow: hidden;
}
#hud-duel .duel-bar > i {
  display: block; height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #3f7a52, #6fa87a);
  transition: width .24s ease;
}
#hud-duel .duel-bar.foe > i {
  background: linear-gradient(90deg, #8c2f24, #cf5a48);
}
#hud-duel .duel-num {
  font-size: 10px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  width: 30px;
  text-align: right;
  flex: 0 0 auto;
}
#hud-castle.hidden { display: none; }

/* ================= 波次横幅（画布内） ================= */
.wave-banner {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 3;
  transform: translate(-50%, -6px) scale(.96);
  padding: 9px 26px 10px;
  border-radius: 10px;
  background: rgba(43, 40, 35, .86);
  color: #f4ead8;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .28s cubic-bezier(.2, 1.2, .4, 1);
  box-shadow: 0 10px 26px rgba(30, 24, 16, .26);
  white-space: nowrap;
}
.wave-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.wave-banner b {
  display: block;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 17px;
  letter-spacing: .16em;
  text-indent: .16em;
}
.wave-banner span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(244, 234, 216, .62);
}
.wave-banner.boss {
  background: linear-gradient(145deg, rgba(109, 84, 168, .94), rgba(70, 52, 112, .94));
}

/* ================= 画布内手势提示 ================= */
.hint3d {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  transform: translate(-50%, 6px);
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(43, 40, 35, .6);
  color: rgba(244, 234, 216, .86);
  font-size: 10px;
  letter-spacing: .1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
}
.hint3d.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= 塔防状态条：八属性塔等级 + 援军 ================= */
#hud-towers {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top, 0px));
  left: 12px;
  z-index: 5;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 232px;
  pointer-events: none;
}
.tw {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--c, #8a6a45);
  background: rgba(250, 246, 238, .82);
  color: var(--c, #8a6a45);
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0;
  box-shadow: 0 1px 3px rgba(36, 30, 22, .12);
  transition: opacity .2s, transform .2s;
}
.tw b { font-family: "Songti SC", "SimSun", serif; font-weight: 700; }
.tw i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #f6efe2;
  background: var(--c, #8a6a45);
  border-radius: 3px;
  padding: 0 3px;
}
.tw.off { opacity: .3; }
.tw.off i { background: rgba(36, 33, 29, .35); }
.tw.dirty { border-color: #4a443c; background: rgba(74, 68, 60, .55); color: #f0e9dc; }
.tw.dirty i { background: #2b2620; }
.tw.ally { border-color: #3f7a52; color: #3f7a52; --c: #3f7a52; }
.tw.ally i { background: #3f7a52; }

/* ================= BOSS 血条 ================= */
#hud-boss {
  position: absolute;
  top: calc(96px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate(-50%, -6px);
  z-index: 6;
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#hud-boss.on { opacity: 1; transform: translate(-50%, 0); }
#hud-boss .bb-name {
  font-size: 10px;
  letter-spacing: .12em;
  color: #f4ecd9;
  text-shadow: 0 1px 3px rgba(20, 16, 10, .8);
  font-family: "Songti SC", "SimSun", serif;
}
#hud-boss .bb-track {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(30, 24, 20, .55);
  border: 1px solid rgba(244, 236, 217, .35);
  overflow: hidden;
}
#hud-boss .bb-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #6d54a8, #b23a2c);
  transition: width .18s linear;
}

/* ================= 布阵：择塔 ================= */
#scene-tower .tower-stage {
  margin: 6px 0 8px;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 17px;
  letter-spacing: .06em;
  color: #2f2a25;
}
#scene-tower .tower-intro {
  font-size: 11px;
  line-height: 1.8;
  color: rgba(47, 42, 37, .68);
  margin-bottom: 12px;
}
#scene-tower .tower-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#scene-tower .tp-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(36, 33, 29, .16);
  background: rgba(252, 249, 242, .9);
  color: var(--c, #8a6a45);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
#scene-tower .tp-chip b {
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  line-height: 1;
}
#scene-tower .tp-chip i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .06em;
  opacity: .72;
}
#scene-tower .tp-chip.on {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, #fbf7ee);
  box-shadow: 0 4px 12px rgba(36, 30, 22, .14), inset 0 0 0 1px var(--c);
  transform: translateY(-2px);
}
#scene-tower .tp-chip.on i { opacity: 1; font-weight: 700; }
#scene-tower .tower-tip {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: rgba(47, 42, 37, .7);
  min-height: 34px;
}
#scene-tower .tower-acts {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
#scene-tower .tower-acts .btn { flex: 1; }
#scene-tower .tower-acts .btn {
  height: 42px;
  border-radius: 6px;
  border: 1px solid rgba(36, 33, 29, .22);
  background: rgba(252, 249, 242, .96);
  color: #2f2a25;
  font-size: 13px;
  letter-spacing: .18em;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s;
}
#scene-tower .tower-acts .btn:active { transform: scale(.985); }
#scene-tower .tower-acts .btn.primary {
  background: #2f2a25;
  color: #f6efe2;
  border-color: #2f2a25;
  box-shadow: 0 4px 12px rgba(36, 30, 22, .2);
}

/* ================= 妖雾（答错减益） ================= */
#fogveil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background:
    radial-gradient(78% 70% at 50% 44%, rgba(72, 62, 48, .05), rgba(52, 45, 35, .62) 100%),
    repeating-linear-gradient(24deg, rgba(96, 86, 70, .05) 0 2px, rgba(96, 86, 70, 0) 2px 9px);
  mix-blend-mode: multiply;
}
#fogveil.on { opacity: 1; }

/* ================= 答题面板微调 ================= */
#quiz .q-timer { margin-bottom: 2px; }
#quiz .opts { margin-bottom: 2px; }
#quiz .q-explain { margin-top: 8px; }
#quiz #q-text { min-height: 44px; }

/* ================= 横屏：画布在左，答题在右 ================= */
@media (orientation: landscape) {
  #app { flex-direction: row; }
  #stage3d {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .hint3d { bottom: 10px; }
  #hud { right: 300px; }
  #quiz {
    flex: 0 0 300px;
    max-width: 300px;
    height: 100%;
    overflow-y: auto;
    border-top: none;
    border-left: 1px solid rgba(36, 33, 29, .1);
    box-shadow: -8px 0 26px rgba(70, 55, 30, .07);
    padding: 10px 12px calc(12px + var(--safe-b));
  }
}

/* 极窄屏 */
@media (max-width: 340px) {
  .wave-dots { max-width: 84px; }
  .brand h1 { font-size: 32px; }
}

/* 低端设备/省电：纸纹罩淡一点 */
@media (prefers-reduced-motion: reduce) {
  #stage3d::before { opacity: .35; }
}

/* ================= 联机共守 ================= */
.coop { position:absolute; inset:0; z-index:9; pointer-events:none;
  font:13px/1.6 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif; color:#24211d; }
.coop > * { pointer-events:auto; }
.coop-toast { position:absolute; left:50%; top:14px; transform:translateX(-50%); z-index:12;
  padding:6px 14px; border-radius:999px; background:rgba(36,33,29,.86); color:#f6eedd; font-size:12px; }
.coop-lobby { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(560px,92vw); max-height:86vh; overflow:auto; padding:18px 20px 20px;
  border-radius:16px; background:rgba(250,246,238,.96); border:1px solid rgba(36,33,29,.18);
  box-shadow:0 18px 46px rgba(40,30,16,.22); }
.coop-head { display:flex; align-items:flex-start; justify-content:space-between; }
.coop-title { font-size:18px; font-weight:700; letter-spacing:.06em; }
.coop-sub { font-size:12px; color:#6d6459; margin-top:2px; }
.coop-head-right { display:flex; gap:8px; }
.coop-x { border:0; background:transparent; font-size:20px; line-height:1; color:#6d6459; cursor:pointer; }
.coop-nick, .coop-create { display:flex; gap:8px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.coop-label { font-size:12px; color:#6d6459; }
.coop-input { flex:1; min-width:110px; padding:7px 10px; border-radius:9px; font:inherit;
  border:1px solid rgba(36,33,29,.22); background:#fffdf7; color:#24211d; }
.coop-btn { padding:8px 16px; border-radius:10px; border:1px solid rgba(36,33,29,.22);
  background:#24211d; color:#f6eedd; font:inherit; cursor:pointer; }
.coop-btn:disabled { opacity:.45; cursor:not-allowed; }
.coop-btn.small { padding:5px 12px; font-size:12px; }
.coop-btn.ghost { background:transparent; color:#24211d; }
.coop-mini { padding:5px 10px; border-radius:8px; border:1px solid rgba(36,33,29,.2);
  background:#fffdf7; font-size:12px; cursor:pointer; color:#24211d; }
.coop-list-head { display:flex; justify-content:space-between; align-items:center; margin:16px 0 8px; }
.coop-list-title { font-size:13px; color:#6d6459; letter-spacing:.08em; }
.coop-list { display:flex; flex-direction:column; gap:8px; }
.coop-room { display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border-radius:12px; background:#fffdf7; border:1px solid rgba(36,33,29,.14); }
.coop-room-t { font-size:14px; font-weight:600; }
.coop-room-s { font-size:12px; color:#6d6459; }
.coop-empty { padding:14px; text-align:center; color:#6d6459; font-size:12px; }
.coop-wait { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(520px,92vw); padding:18px 20px; border-radius:16px; background:rgba(250,246,238,.96);
  border:1px solid rgba(36,33,29,.18); box-shadow:0 18px 46px rgba(40,30,16,.2); }
.coop-wplayers { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 16px; }
.coop-wp { padding:5px 10px; border-radius:8px; background:#f3ede2; font-size:12px; }
.coop-wacts { display:flex; gap:10px; }
.coop-hud { position:absolute; left:0; right:0; top:0; padding:10px 14px; display:flex; align-items:center;
  gap:12px; background:linear-gradient(180deg,rgba(250,246,238,.92),rgba(250,246,238,0)); }
.coop-hpbar { width:min(320px,42vw); height:10px; border-radius:999px; background:rgba(36,33,29,.18); overflow:hidden; }
.coop-hpfill { height:100%; width:100%; background:#3f7f5a; transition:width .18s linear; }
.coop-hptext { font-size:12px; color:#4a443b; font-variant-numeric:tabular-nums; }
.coop-wave { font-size:13px; font-weight:600; margin-left:auto; }
.coop-side { position:absolute; right:12px; top:48px; width:min(240px,44vw); display:flex;
  flex-direction:column; gap:4px; padding:8px 10px; border-radius:12px;
  background:rgba(250,246,238,.86); border:1px solid rgba(36,33,29,.14); }
.coop-prow { display:flex; align-items:center; gap:6px; font-size:12px; flex-wrap:wrap; }
.coop-pname { min-width:52px; font-weight:600; }
.coop-pscore { font-variant-numeric:tabular-nums; color:#6d6459; }
.coop-pels { display:flex; gap:4px; margin-left:auto; }
.coop-etag { font-size:11px; padding:1px 5px; border-radius:5px; background:#fffdf7;
  border:1px solid currentColor; }
.coop-q { position:absolute; left:0; right:0; bottom:0; padding:14px 16px 16px;
  background:rgba(250,246,238,.95); border-top:1px solid rgba(36,33,29,.14); }
.coop-qtop { display:flex; align-items:center; gap:8px; font-size:12px; }
.coop-subj { font-weight:600; }
.coop-attr { padding:1px 8px; border-radius:6px; border:1px solid currentColor; }
.coop-combo { margin-left:auto; color:#b23a2c; font-size:12px; }
.coop-qtext { margin:8px 0 10px; font-size:16px; font-weight:600; line-height:1.5; }
.coop-opts { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.coop-qhint { margin-top:8px; font-size:11px; color:#6d6459; }
.coop-qexp { margin-top:8px; padding:8px 10px; border-radius:8px; background:#f3ede2; font-size:12px; }
.coop-over { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(520px,92vw); padding:20px 22px; border-radius:16px; background:rgba(250,246,238,.97);
  border:1px solid rgba(36,33,29,.18); box-shadow:0 18px 46px rgba(40,30,16,.24); }
.coop-otitle { font-size:20px; font-weight:700; letter-spacing:.08em; }
.coop-obody { margin:10px 0 16px; font-size:13px; color:#4a443b; white-space:pre-line; }
.coop .opt { padding:9px 12px; border-radius:10px; border:1px solid rgba(36,33,29,.2);
  background:#fffdf7; font:inherit; text-align:left; cursor:pointer; color:#24211d; }
.coop .opt.right { border-color:#3f7f5a; background:#eef6ef; }
.coop .opt.wrong { border-color:#b23a2c; background:#fbeee9; }
.coop .opt.dim { opacity:.6; }
@media (max-width:720px) {
  .coop-opts { grid-template-columns:1fr; }
  .coop-side { display:none; }
}

/* ================= 竖屏小屏：答题手感 ================= */
/* 只作用于 3D 页（2D 页不加载本文件），不动共用样式表 */
@media (max-width: 600px) and (orientation: portrait) {
  /* 提示行与「跳过」分开：提示最多两行，按钮不参与挤压 */
  .quiz-bottom { gap: 10px; margin-top: 8px; align-items: flex-end; }
  .quiz-bottom .hint {
    flex: 1 1 auto; min-width: 0;
    font-size: 11px; line-height: 1.45; letter-spacing: .02em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .skip-btn { flex: 0 0 auto; padding: 8px 16px; min-height: 34px; font-size: 12px; }

  /* 选项：热区抬高到 52px，两列之间留白加大，指头不容易点错 */
  #q-opts { gap: 10px; }
  #q-opts .opt {
    min-height: 52px;
    padding: 12px 12px 12px 32px;
    font-size: 14.5px; line-height: 1.4;
    border-radius: 12px;
  }
  #q-opts .opt::before { left: 10px; width: 16px; height: 16px; line-height: 16px; font-size: 11px; }
  /* 题干稍微放大一点，竖屏下别的字都小，题眼不能小 */
  #quiz .q-text { font-size: 16px; line-height: 1.55; }
}

/* 竖屏且很矮（小屏手机横过来之前的状态）：只保题卡，不挤 HUD */
@media (max-width: 600px) and (orientation: portrait) and (max-height: 640px) {
  #q-opts .opt { min-height: 46px; padding: 10px 10px 10px 30px; font-size: 13.5px; }
  #quiz .q-text { font-size: 15px; }
}
/* ===== 血线告急：整屏边缘透红脉冲 ===== */
body.hp-danger::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 900;
  box-shadow: inset 0 0 90px rgba(178, 58, 44, .38), inset 0 0 22px rgba(178, 58, 44, .28);
  animation: hpDangerPulse 1.35s ease-in-out infinite;
}
@keyframes hpDangerPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.hp-danger::after { animation: none; opacity: .7; }
}

/* 护盾：血条上叠一层金色薄光，告诉玩家"这一刀先被护盾吃了" */
.hpbar > i.shielded {
  background: linear-gradient(90deg, #8a6a24, #d3ad4c);
  box-shadow: inset 0 0 6px rgba(255, 232, 160, .55);
}
/* ================= 登录门（未登录不进世界） ================= */
.overlay.gate {
  z-index: 9999;
  padding: 18px;
  background: rgba(18, 15, 12, .72);
}
.overlay.gate .gate-d {
  width: min(380px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  padding-bottom: 16px;
}
.gate-brand .seal {
  margin: 2px auto 10px;
}
.gate-brand h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--ink);
}
.gate-brand .dk-sub {
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 1px;
}
.overlay.gate .auth-form {
  margin-top: 4px;
  text-align: left;
}
.overlay.gate .auth-form .dbtn {
  margin-top: 10px;
  width: 100%;
}
.overlay.gate .auth-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-3);
}
.gate-err {
  margin-top: 8px;
  font-size: 12px;
  color: #b23a2f;
  text-align: center;
}
.gate-loading {
  position: absolute;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  font-size: 13px;
  color: #f6ecd8;
  letter-spacing: 2px;
}

