.ping-page {
  height: 100svh;
  overflow: hidden;
  background: #050505;
  touch-action: none;
  user-select: none;
}
.ping-page .nav {
  mix-blend-mode: normal;
}
.ping-page .brand,
.ping-page .nav-links > a {
  mix-blend-mode: normal;
}
.ping-nav {
  background: rgba(5, 5, 5, .55);
  backdrop-filter: blur(10px);
}

.stage {
  position: relative;
  height: 100svh;
  display: grid;
  place-items: center;
  background: #050505;
}
#view {
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  display: block;
  background: #0a0a0a;
  cursor: none;
}
.ping-page.scene-title #view { cursor: default; }

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.bars {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 76px clamp(16px, 3vw, 48px) 0;
  max-width: 1600px;
  margin: 0 auto;
}
.who {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.who .av {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 50%;
  border: 1px solid rgba(238, 43, 35, .85);
  background: #111;
}
.bar-col-r { text-align: right; }
.bar-col-r .who { justify-content: flex-end; }
.score {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .85;
}
.charge {
  height: 6px;
  margin-top: 10px;
  background: #1a1a1a;
  border: 1px solid #3a1515;
  position: relative;
  overflow: hidden;
  max-width: 220px;
}
.bar-col-r .charge { margin-left: auto; }
.charge b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #ee2b23, #ff5a4a);
}
.clock-col {
  text-align: center;
  min-width: 70px;
}
.clock {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
  padding-top: 18px;
  color: #ee2b23;
}
.combo {
  position: absolute;
  right: 6vw;
  top: 38%;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 900;
  letter-spacing: -.06em;
  color: #fff;
  text-shadow: 4px 0 0 #ee2b23, -3px 0 0 #fff;
  line-height: .85;
}
.combo small {
  display: block;
  font-size: .28em;
  letter-spacing: .2em;
  color: #ee2b23;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(22px, 5vw, 80px) clamp(40px, 8vh, 90px);
  background:
    linear-gradient(90deg, rgba(5,5,5,.78) 0%, rgba(5,5,5,.2) 55%, transparent),
    linear-gradient(0deg, rgba(5,5,5,.88), transparent 48%);
  pointer-events: none;
}
.overlay .button { pointer-events: auto; width: max-content; }
.overlay .button-primary:hover { background: #fff; color: #111; }
.overlay h1 {
  font-size: clamp(48px, 9vw, 120px);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 900;
  margin: 0 0 16px;
  max-width: 12ch;
}
.overlay .lede {
  font-size: clamp(15px, 1.6vw, 22px);
  color: #cfcbc2;
  margin: 0 0 22px;
}
.overlay .keys {
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: #9b9a95;
  max-width: 720px;
}
.overlay .keys-sub { margin-top: 8px; opacity: .7; }
.overlay.is-dim {
  background: rgba(5,5,5,.72);
  justify-content: center;
  align-items: flex-start;
}
.overlay.is-dim .keys { display: none; }
.overlay.is-dim h1 { max-width: 16ch; }
.overlay[hidden] { display: none; }

.rotate-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0a0a0a;
  color: #f2efe8;
  display: none;
  place-items: center;
  text-align: center;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 900;
  letter-spacing: -.04em;
  pointer-events: none;
}
.rotate-gate:not([hidden]) {
  display: grid;
  pointer-events: auto;
}
.rotate-gate span {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .22em;
  color: #ee2b23;
}

.touch {
  position: absolute;
  inset: auto 0 12px;
  z-index: 5;
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 18px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.touch[hidden] { display: none; }
.touch:not([hidden]) {
  display: flex;
}
.touch button {
  pointer-events: auto;
  height: 64px;
  min-width: 92px;
  padding: 0 18px;
  border: 1px solid #ee2b23;
  background: rgba(10,10,10,.55);
  color: #ee2b23;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}
.touch button:active { background: #ee2b23; color: #fff; }

@media (pointer: fine) and (min-width: 1100px) {
  .touch { display: none !important; }
}
@media (max-height: 500px) {
  .bars { padding-top: 58px; gap: 10px; }
  .touch button { height: 52px; }
}

html[lang="zh-Hant"] .overlay h1 {
  letter-spacing: -.028em;
  line-height: 1.02;
}
