/* GateKit p1 §1/§1.5 — verification method sheet, styled after the Apple
   Pay "Card Verification" bottom sheet (real-device reference screenshots)
   with the payment semantics swapped for access-verification semantics.
   Consumes the host theme's existing design tokens (--tint/--separator/
   --text-secondary/--font-ui, tokens.css) rather than redefining them —
   GateKit is a plugin meant to sit on top of whatever theme is active, not
   its own visual system. Only the sheet's own background is a literal
   value from the spec (#1C1C1E dark / #F2F2F7 light) rather than the
   theme's --bg-elevated, since the spec gave that exact pair verbatim and
   it doesn't quite match --bg-elevated's light value (#FFFFFF vs F2F2F7). */

/* icon wrappers hold an inlined <svg> (gate.js) — width/height:100% here
   fills whatever box the wrapper itself is sized to below, and `svg`
   inherits `color` naturally since it's real DOM, not an <img src>. */
.gate-brand__shield svg, .gate-card__icon svg, .gate-card__chevron svg,
.gate-vcard__badge svg, .gate-vcard__icon svg, .gate-carousel-nav svg,
.gate-input__result-icon svg, .gate-denied__x svg {
  display: block; width: 100%; height: 100%;
}

html.gate-no-scroll { overflow: hidden; }

.gate-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
}
.gate-mask {
  position: absolute; inset: 0;
  background: rgb(0 0 0 / .4);
  opacity: 0;
}

.gate-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden; /* explicit backstop — see B-style overflow fix build notes: leaving this unset let it auto-compute to "auto" (paired with overflow-y), which silently made the whole sheet horizontally scrollable */
  border-radius: 28px 28px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: #1C1C1E;
  transform: translateY(100%);
}
:root[data-theme="light"] .gate-sheet { background: #F2F2F7; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .gate-sheet { background: #F2F2F7; }
}

.gate-grabber {
  width: 36px; height: 5px;
  border-radius: 999px;
  background: rgb(120 120 128 / .36);
  margin: 6px auto 14px;
}

/* §1.2 brand row */
.gate-brand {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--separator);
  margin-bottom: 18px;
}
.gate-brand__shield {
  width: 28px; height: 28px;
  color: var(--tint);
  flex: 0 0 auto;
}
.gate-brand__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1 1 auto;
  min-width: 0;
}
.gate-cancel {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--tint);
  background: none; border: none;
}

/* §1.3 article info row */
.gate-article { margin-bottom: 22px; }
.gate-article__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}
.gate-article__subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* §1.4 prompt row */
.gate-prompt {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: 6px 0 16px;
}

/* §1.5 method card list — real 3D flip, reworked per 总指挥's correction.
   p1 first draft transitioned height/opacity/scale on THIS outer element
   alongside the rotation, which read as the card enlarging into view
   rather than a physical card spinning on its axis. Fix: perspective
   lives here, on a completely static outer box — it NEVER scales, moves,
   or resizes. Only .gate-card-inner (below) rotates, and its height-grow
   is a separate, deliberate effect kept off this element entirely so the
   two don't visually compound into "zooming". */
.gate-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}
.gate-card {
  perspective: 1200px;
  border-radius: 16px;
  transition: opacity 200ms ease;
}
.gate-methods.has-flipped .gate-card.is-other {
  opacity: 0;
  pointer-events: none;
}

/* the actual rotating layer. height starts at the front row's own 72px;
   flip() (gate.js) measures .gate-card-back's real content height and
   sets it inline right before adding .flipped, so this transitions to
   however tall that card's real input face turns out to be — no
   hardcoded placeholder to keep in sync by hand once §2 lands. */
.gate-card-inner {
  position: relative;
  height: 72px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 520ms cubic-bezier(.2,.85,.3,1), height 520ms cubic-bezier(.2,.85,.3,1);
}
.gate-card.flipped .gate-card-inner {
  transform: rotateY(180deg);
}

/* both faces stacked exactly on top of each other; backface-visibility is
   what makes whichever one is facing away actually disappear instead of
   showing through mirrored. .gate-card-front has no explicit `position`
   (stays in normal flow — its natural box is what .gate-card-inner's
   72px baseline height matches), only .gate-card-back is pulled out with
   position:absolute so it can overlap the front exactly. */
.gate-card-front, .gate-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  top: 0; left: 0; width: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.gate-card-back {
  position: absolute;
  transform: rotateY(180deg);
}

.gate-card-front {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  height: 72px;
  background: rgb(120 120 128 / .12);
  cursor: pointer;
}
:root[data-theme="light"] .gate-card-front { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.gate-card__icon {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  color: var(--tint);
}
/* p3.12:2FA/TG 卡的品牌 logo(1Password+Bitwarden 并排 / Telegram 单个)
   ——比普通线框图标宽,允许横向撑开到两个 logo 的宽度,不强制挤压成
   22px 方块。 */
.gate-card__icon--brand { width: auto; display: flex; align-items: center; gap: 6px; }
.gate-card__brandmark { width: 22px; height: 22px; display: block; flex: none; }
.gate-card__brandmark svg { width: 100%; height: 100%; display: block; }
.gate-card__text { flex: 1 1 auto; min-width: 0; }
.gate-card__name {
  font-size: 17px; font-weight: 600;
  color: var(--text-primary);
}
.gate-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.gate-card__chevron {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  color: var(--text-tertiary);
}

/* back face — §2 stub only, real input UI is next round */
.gate-card-back {
  background: rgb(120 120 128 / .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}
:root[data-theme="light"] .gate-card-back { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.gate-card__back-note {
  font-size: 13px;
  color: var(--text-tertiary);
}
.gate-card__back-btn {
  font-size: 15px;
  font-weight: 600;
  color: var(--tint);
  background: none; border: none;
}

/* ==================== B 样式:银行卡轮播选择器 ====================
   gate_style: B. Same brand/article/prompt rows above (openGate, gate.js)
   as A style — this section only covers what replaces .gate-methods.
   Card gradients are literal per-method colors (gate.js METHODS array),
   deliberately NOT theme-tokenized — a "bank card" reads as a fixed
   physical object regardless of the page's own light/dark state, same
   reasoning P2.2's share-image canvas used for staying always-dark. */

.gate-carousel-wrap { padding-bottom: 8px; }

.gate-carousel {
  position: relative;
  height: 220px;
  /* required for the cards' translateZ to read as real depth instead of
     a flat scale — same lesson A style's flip rework already applied. */
  perspective: 1000px;
  outline: none;
  /* the actual overflow-bug fix: this is the carousel VIEWPORT — any card
     past ±1 offset (and the outer portion of the ±1 peeking cards
     themselves) is meant to be cut off here, at this element's own edge,
     not left to spill out to .gate-sheet's edge (or, as it turned out,
     make the whole sheet horizontally scrollable — see build notes). */
  overflow: hidden;
}
.gate-carousel-track {
  position: relative;
  width: 100%; height: 100%;
}

.gate-vcard {
  position: absolute;
  top: 50%; left: 50%;
  width: min(320px, 78vw);
  height: 200px;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 14px 30px rgb(0 0 0 / .32);
  /* transform is set inline per-frame by gate.js (positionVCard) — the
     base translate(-50%,-50%) plus an offset-driven translateX/
     translateZ/scale all travel together as one string, so this
     transition animates the whole composed move in one motion rather
     than three separately-timed ones. */
  transition: transform 360ms cubic-bezier(.2,.85,.3,1), opacity 360ms cubic-bezier(.2,.85,.3,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.gate-vcard__sheen {
  position: absolute;
  top: -60%; left: -25%;
  width: 70%; height: 220%;
  background: linear-gradient(120deg, rgb(255 255 255 / .22), transparent 60%);
  transform: rotate(18deg);
  pointer-events: none;
}
.gate-vcard__top, .gate-vcard__bottom {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
.gate-vcard__issuer {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .78);
}
.gate-vcard__badge {
  width: 18px; height: 18px;
  color: rgb(255 255 255 / .78);
}
.gate-vcard__mid {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.gate-vcard__icon {
  width: 40px; height: 40px;
  color: #fff;
}
.gate-vcard__icon--brand { width: auto; height: 32px; display: flex; align-items: center; gap: 8px; }
.gate-vcard__icon--brand .gate-card__brandmark { width: 32px; height: 32px; background: #fff; border-radius: 8px; padding: 4px; box-sizing: border-box; }
.gate-vcard__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
}
.gate-vcard__number {
  font-size: 13px;
  letter-spacing: .04em;
  color: rgb(255 255 255 / .82);
  font-variant-numeric: tabular-nums;
}
.gate-vcard__tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgb(255 255 255 / .6);
}

.gate-carousel-nav {
  position: absolute;
  top: 50%;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgb(120 120 128 / .18);
  color: var(--text-primary);
  border: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.gate-carousel-nav--prev { left: 4px; transform: translateY(-50%) rotate(180deg); }
.gate-carousel-nav--next { right: 4px; transform: translateY(-50%); }

.gate-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  margin: 10px 0 16px;
}
.gate-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(120 120 128 / .3);
  transition: background 200ms ease, transform 200ms ease;
}
.gate-dot.is-active {
  background: var(--tint);
  transform: scale(1.3);
}

.gate-carousel-confirm {
  display: block;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px;
  background: var(--tint);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.gate-carousel-confirm:disabled {
  background: rgb(120 120 128 / .18);
  color: var(--text-tertiary);
}

/* B 样式选中卡后的输入容器——现在装的是真正的 .gate-input 组件(和 A
   样式翻转背面共用同一份),align-items 从 center 改成 stretch 是必须
   的:.gate-input 自己是 display:flex 的块级子元素,父级若还是 center,
   .gate-input 就只会撑到内容本身的宽度,字段/按钮就不是"卡片满宽"了。
   padding 底部收紧到 18px,对齐 A 样式那次"16–20px"的验收目标——这个
   容器本来就没有另一层"外框+内容"的双重 padding 问题,只是数值本身之
   前没对齐过。 */
.gate-carousel-selected {
  border-radius: 16px;
  background: rgb(120 120 128 / .12);
  padding: 20px 16px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
:root[data-theme="light"] .gate-carousel-selected { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }

/* ==================== §2①: 密码验证输入界面 ====================
   Lives inside .gate-card-back (A style) unchanged — same padding/
   overflow/backface-visibility treatment every back face already has,
   this is just its content. B style's slide-in reuses the exact same
   .gate-input markup/classes once that round starts (总指挥's "A/B 复用
   同一套输入组件"), nothing here is A-specific except the containment. */
/* p1 §2 tightening: no padding of its own — .gate-card-back (the wrapping
   grey box) already contributes its own 16px on every side, and this used
   to ALSO add 20px top/bottom + 16px left/right on top of that, stacking
   into ~36px of dead space below the 返回 link. Same bug class as
   p2.1.1's stat-strip double-padding — the container's own inset already
   covers it, a child adding its own on top just compounds it. */
.gate-input {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: center;
}
.gate-input__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.gate-input__field {
  height: 52px;
  border-radius: 12px;
  border: none;
  background: rgb(120 120 128 / .12);
  color: var(--text-primary);
  font-size: 20px;
  letter-spacing: .3em;
  text-align: center;
  /* the placeholder/caret sit slightly left of true-center once text is
     typed because of letter-spacing's trailing gap after the last
     character — nudging padding-left absorbs that without touching the
     centered look for the empty state. */
  padding: 0 0 0 .3em;
  transition: opacity 200ms ease;
}
.gate-input__field:focus { outline: 2px solid var(--tint); outline-offset: 2px; }
:root[data-theme="light"] .gate-input__field { background: #fff; box-shadow: inset 0 0 0 1px var(--separator); }

/* p1 收尾返工: 反馈从"框下一行小图标"改成"占满输入框原位的大符号"，对照
   Apple Pay 卡片验证成功的效果——反馈时输入框本身淡出，同一块区域换成
   居中的大圆圈+图形。.gate-input__stage 用 CSS Grid 让 field 和 result
   叠在同一个格子里，min-height 按"大符号+下方小字"这个更高的状态定死，
   field 平时只是在这个稍高的区域里居中——两个状态互相切换时,卡片自身
   的高度全程不需要重新测量,不会有第二次意外的翻转高度过渡。 */
.gate-input__stage {
  position: relative;
  display: grid;
  min-height: 118px;
}
.gate-input__stage > * {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: stretch;
}
.gate-input__stage.is-result .gate-input__field {
  opacity: 0;
  pointer-events: none;
}
.gate-input__stage.is-result .gate-pin {
  opacity: 0;
  pointer-events: none;
}

/* p3.12 §2FA:6 位 PIN 输入(参考工银 PIN 输入的独立方格样式,总指挥原
   话)——和上面 .gate-input__field 那个单文本框是两种不同组件,不是复
   用同一个类改样式,因为交互本质不同(6 个独立焦点 vs 1 个)。 */
.gate-pin {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.gate-pin__box {
  width: 42px; height: 52px;
  border-radius: 12px;
  border: none;
  background: rgb(120 120 128 / .12);
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  transition: opacity 200ms ease, outline-color 150ms ease;
}
.gate-pin__box:focus { outline: 2px solid var(--tint); outline-offset: 2px; }
:root[data-theme="light"] .gate-pin__box { background: #fff; box-shadow: inset 0 0 0 1px var(--separator); }
.gate-pin__box:disabled { opacity: .5; }

/* TG 引导按钮:Telegram 品牌色底 + 白色 logo,和普通 .gate-input__submit
   的纯 --tint 蓝不一样——这是"打开外部 app"的动作,用品牌色让读者一眼
   认出要去哪(和 buildEmailRequest 的邮件按钮用普通蓝色是有意的区
   别,邮件走的是系统默认 mailto: 没有品牌色可言)。 */
.gate-input--telegram-intro .gate-input__submit {
  background: #26A5E4;
}
.gate-input--telegram-intro .gate-input__submit svg { width: 20px; height: 20px; }

.gate-input__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.gate-input__stage.is-result .gate-input__result {
  opacity: 1;
  pointer-events: auto;
}

/* 成功=绿色圆圈+对号,失败=红色圆圈+叉——同一个位置、同一套弹入/描边
   动画,只有颜色和图形不同,对称是刻意的（总指挥原话："成功和失败用的是
   同一个大符号位...只是颜色和图形不同,对称"）。 */
.gate-input__result-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  color: #fff;
}
.gate-input__result.is-success .gate-input__result-icon { background: #34C759; } /* iOS 系统绿——GateKit 里蓝色 --tint 是主操作色,这里要的是"成功"这个状态色,不是主题色 */
.gate-input__result.is-error .gate-input__result-icon { background: #FF3B30; } /* 跟拦截页红叉同一支红,状态色统一 */
/* is-popping 是每次 showResult() 调用时手动 remove+reflow+add 出来的
   触发类(gate.js),不是靠 is-result/is-success 这些常驻类直接挂动画——
   circle 这个节点本身不会被重建,只有靠这样一个显式触发类才能保证连续
   两次失败也能重新播放一次完整的弹入动画,而不是只播一次就不再触发。 */
.gate-input__result-icon.is-popping {
  animation: gate-check-pop 260ms cubic-bezier(.3,1.4,.4,1);
}
@keyframes gate-check-pop {
  0% { transform: scale(0); opacity: 0; }
  65% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* pathLength="1"(gate.js buildFeedbackCheckSvg/buildFeedbackXSvg 给每条
   path 加的属性)把路径长度归一化成 1,stroke-dasharray/dashoffset 就能
   精确地从"完全不可见"描到"完整画出"，不依赖具体路径的真实像素长度。
   延迟 120ms 是让描边动画在圆圈弹入(65% 关键帧约在 170ms 处)快回弹稳定
   后再开始画。X 图标有两条 path,这条规则对两条同时生效,两条线同时
   描出,不分先后——这条 svg path 本身每次都是 showResult() 里用
   innerHTML 全新写入的节点,天然就会重新播放,不需要额外的触发类。 */
.gate-input__result-icon svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: gate-check-draw 200ms 120ms cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes gate-check-draw {
  to { stroke-dashoffset: 0; }
}
.gate-input__result-label {
  font-size: 13px;
  font-weight: 600;
}
.gate-input__result.is-success .gate-input__result-label { color: #34C759; }
.gate-input__result.is-error .gate-input__result-label { color: #FF3B30; }

.gate-input__submit {
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--tint);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.gate-input__submit:active { opacity: .85; }
.gate-input__submit:disabled { opacity: .5; }

.gate-input__back {
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 2px;
}

/* 邮件申请方式——没有输入框，note 是操作说明，sent-note 用中性灰而不是
   红/绿（这条路径既不是"对"也不是"错"，见 gate.js buildEmailRequest 的
   说明），沿用普通的一行反馈，不需要走大符号这一套——静态阶段邮件申请
   本来就没有"对/错"结果可言。 */
.gate-input__email-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.gate-input__feedback {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-input__sent-note {
  font-size: 13px;
  color: var(--text-tertiary);
  opacity: 0;
  transition: opacity 150ms ease;
}
.gate-input__sent-note.is-visible { opacity: 1; }

/* ==================== §3 全屏拦截页 ====================
   True black/white per spec (#000/#FFF), deliberately NOT the sheet's
   #1C1C1E/#F2F2F7 pair — this is a full standalone page, not a modal
   floating over site content, so it gets the plainer, more severe pair
   the original brief specified for it. */
.gate-blocked {
  position: fixed; inset: 0; z-index: 400;
  background: #fff; color: #000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px 40px;
}
:root[data-theme="dark"] .gate-blocked { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gate-blocked { background: #000; color: #fff; }
}
.gate-blocked__card {
  margin-bottom: 32px;
  /* .gate-vcard positions itself via top/left:50% + an inline transform
     meant for the carousel's absolute-positioned context — reset to a
     plain in-flow box here so it just sits centered at its natural size. */
  position: relative;
  display: flex;
  justify-content: center;
}
.gate-blocked__card .gate-vcard {
  position: relative;
  top: auto; left: auto;
  transform: none !important;
  opacity: 1 !important;
}
.gate-blocked__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
  max-width: 320px;
}
.gate-blocked__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}
.gate-blocked__contacts {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.gate-blocked__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: none;
  background: rgb(120 120 128 / .12);
  color: inherit;
  font-size: 15px;
}
.gate-blocked__contact:active { opacity: .7; }
.gate-blocked__contact-label { font-weight: 600; }
.gate-blocked__contact-value { color: var(--text-secondary); }
/* p3.8 bug 1:原来是裸文字链接(border:none; background:none),和浮层里
   验证/成功反馈用的实心蓝胶囊按钮(.gate-input__submit)视觉上不是同一
   套语言——这里直接照抄 .gate-input__submit 的配方(高度/圆角/实心
   var(--tint) 底/白字),不新造一套按钮样式,宽度对齐上面
   .gate-blocked__contacts 那组联系行的 100%/max-width:360px,视觉上连
   成一列。 */
.gate-blocked__home {
  width: 100%;
  max-width: 360px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--tint);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.gate-blocked__home:active { opacity: .85; }

/* ==================== p1 §2③: 红叉拒绝页 ====================
   .gate-denied layers onto .gate-blocked's base (full-screen black/white,
   centered column) — no card slot, no subtitle, just the X and a way
   out, per 总指挥's "更简洁更冷". */
.gate-denied__x {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: #FF3B30;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  box-sizing: border-box;
  margin-bottom: 28px;
  animation: gate-x-pop 550ms cubic-bezier(.3,1.2,.4,1);
}
@keyframes gate-x-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.12); opacity: 1; }
  60% { transform: scale(1) translateX(-6px); }
  70% { transform: scale(1) translateX(5px); }
  80% { transform: scale(1) translateX(-3px); }
  90% { transform: scale(1) translateX(2px); }
  100% { transform: scale(1) translateX(0); }
}
