:root {
  --bg: #0a0c0e;
  --panel: rgba(12, 18, 22, 0.92);
  --accent: #8b0000;
  --accent-dim: #4a1518;
  --glass: rgba(180, 210, 230, 0.08);
  --text: #e8eef2;
  --muted: #7a8a94;
  --hud-font: "Orbitron", "Noto Sans SC", sans-serif;
  /** 与 game.js 中 getLoomDurationMs / getPostShatterDelayMs 保持一致 */
  --tyrant-loom-ms: 2350ms;
  --glass-shatter-ms: 1450ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tyrant-loom-ms: 450ms;
    --glass-shatter-ms: 320ms;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  overflow: hidden;
  cursor: auto;
}

/** 对局中隐藏系统光标，由准星跟随指针/触点 */
body.game-active {
  cursor: none;
}

body.game-active #app {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#app {
  display: grid;
  grid-template-columns: 1fr 220px;
  grid-template-rows: auto 1fr;
  height: 100%;
  gap: 0;
}

#app > main {
  min-height: 0;
}

.hud {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
  font-family: var(--hud-font);
  font-size: 14px;
  z-index: 20;
}

.hud .label {
  color: var(--muted);
  margin-right: 4px;
}

.hud .sep {
  margin: 0 10px;
  opacity: 0.4;
}

#levelTimer {
  color: #ff6b4a;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stage-wrap {
  position: relative;
  padding: 8px 12px 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/**
 * 场景图完整显示；上排四块玻璃位置由 game.js WINDOW_PANES_NORM 按整图比例贴合（图二红框）。
 */
.stage-window {
  --win-inset: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.scene-stack {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/**
 * 与图片同尺寸，便于百分比与像素对齐；图片 object-fit: contain 完整显示。
 */
.scene-bg-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  line-height: 0;
}

.scene-bg-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: top;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/**
 * 铺满整图叠层；子格 position/尺寸由脚本按四块玻璃分别设置（非均分整行）
 */
.window-grid {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/** 仅窗格本身接收交互（玻璃/怪物层会设回 auto） */
.window-grid .window-cell {
  pointer-events: auto;
  box-sizing: border-box;
}

/** 不画框：仅透明占位；left/top/width/height 由 applyWindowPaneCalibration 写入 */
.window-cell {
  position: absolute;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/**
 * 线上兜底：若 JS 缓存/执行异常导致未写入定位，仍按上排四窗显示，
 * 避免窗格堆叠到页面下方造成“页面错乱”。
 */
.window-grid .window-cell:nth-child(1) {
  left: 5%;
  top: 7%;
  width: 18%;
  height: 35%;
}

.window-grid .window-cell:nth-child(2) {
  left: 26%;
  top: 7%;
  width: 20%;
  height: 35%;
}

.window-grid .window-cell:nth-child(3) {
  left: 52%;
  top: 7%;
  width: 20%;
  height: 35%;
}

.window-grid .window-cell:nth-child(4) {
  left: 75%;
  top: 7%;
  width: 19%;
  height: 35%;
}

.window-cell.state-broken {
  overflow: visible;
}

.window-cell::before {
  display: none;
}

/** 不画框：保留 DOM 结构，避免改 game.js */
.window-frame {
  display: none !important;
}

/** 玻璃区域：由网格碎片拼成一整面，砸碎时仍是同一批 DOM 飞出 */
.window-pane {
  position: absolute;
  inset: var(--win-inset, 6px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 1px;
}

/** 未破碎时：整块玻璃面板（无分格线） */
.window-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      160deg,
      rgba(214, 240, 255, 0.28) 0%,
      rgba(182, 218, 244, 0.18) 42%,
      rgba(98, 136, 168, 0.12) 100%
    ),
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 255, 255, 0.25), transparent 55%);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.window-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(95deg, transparent 10%, rgba(255, 255, 255, 0.14) 22%, transparent 32%),
    linear-gradient(105deg, transparent 58%, rgba(255, 255, 255, 0.08) 66%, transparent 76%);
  opacity: 0.75;
}

/** 加压阶段裂纹：碎裂前兆（叠在抓挠层之上，与窗格内口对齐） */
.glass-crack-overlay {
  position: absolute;
  inset: var(--win-inset, 6px);
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease-out;
  background-image:
    linear-gradient(122deg, transparent 44%, rgba(255, 255, 255, 0.42) 45.5%, rgba(255, 255, 255, 0.55) 46%, transparent 47.5%),
    linear-gradient(58deg, transparent 52%, rgba(200, 230, 255, 0.2) 53.5%, transparent 55%),
    linear-gradient(168deg, transparent 38%, rgba(255, 255, 255, 0.15) 40%, transparent 42%);
  mix-blend-mode: soft-light;
  filter: contrast(1.1);
}

.window-cell.state-glass-tension .glass-crack-overlay {
  opacity: 0.92;
}

.window-cell.state-broken .glass-crack-overlay,
.window-cell.state-combat .glass-crack-overlay {
  opacity: 0;
  transition: opacity 0.08s linear;
}

/** 撞击瞬间：整块玻璃高亮一帧再碎 */
.window-cell.state-shattering .window-pane {
  animation: glass-pane-impact 0.28s cubic-bezier(0.12, 0.72, 0.2, 1);
}

@keyframes glass-pane-impact {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  22% {
    transform: scale(1.028);
    filter: brightness(2.45) contrast(1.14) saturate(1.12);
  }
  55% {
    transform: scale(1.012);
    filter: brightness(1.45) contrast(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/** 破窗瞬间额外白闪 + 裂纹冲击，增强“砸开”反馈 */
.window-cell.state-shattering .glass-crack-overlay {
  opacity: 1;
  animation: crack-impact-flash 0.26s ease-out forwards;
}

@keyframes crack-impact-flash {
  0% {
    opacity: 0.88;
    filter: brightness(1.15) contrast(1.15);
  }
  28% {
    opacity: 1;
    filter: brightness(2.2) contrast(1.25);
  }
  100% {
    opacity: 0;
    filter: brightness(1) contrast(1);
  }
}

.window-cell.state-broken .window-pane {
  overflow: visible;
}

.window-cell.state-broken .window-pane::before,
.window-cell.state-broken .window-pane::after,
.window-cell.state-combat .window-pane::before,
.window-cell.state-combat .window-pane::after {
  opacity: 0;
}

.glass-fragment-grid {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glass-fragment-grid::after {
  content: none;
}

.glass-fragment-grid::before {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0) 62%
  );
  opacity: 0;
  transform: translateX(-30%) rotate(0.001deg);
  pointer-events: none;
  z-index: 1;
}

@keyframes glass-reflection-sweep {
  0% {
    opacity: 0;
    transform: translateX(-35%) skewX(-8deg);
  }
  18% {
    opacity: 1;
  }
  60% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translateX(55%) skewX(-8deg);
  }
}

.glass-fragment {
  position: absolute;
  min-width: 0;
  min-height: 0;
  transform-origin: center center;
  transform: translate3d(0, 0, 0);
  opacity: 0;
  clip-path: polygon(
    var(--tlx, 0%) var(--tly, 0%),
    var(--trx, 100%) var(--try, 0%),
    var(--brx, 100%) var(--bry, 100%),
    var(--blx, 0%) var(--bly, 100%)
  );
  background: linear-gradient(
    132deg,
    rgba(224, 246, 255, 0.3) 0%,
    rgba(160, 198, 230, 0.2) 45%,
    rgba(85, 118, 150, 0.12) 100%
  );
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.14),
    0 0 1px rgba(255, 255, 255, 0.2);
}

.tyrant-layer {
  position: absolute;
  inset: var(--win-inset, 6px);
  z-index: 4;
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
}

/** 血条单独一层且永远在玻璃碎片之上，避免被挡；不拦截点击（射击仍落到暴君层） */
.tyrant-hud {
  position: absolute;
  inset: var(--win-inset, 6px);
  z-index: 14;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  pointer-events: none;
  box-sizing: border-box;
}

/** 暴君立绘撑满窗内区域（与 frame 内口一致），由子元素 object-fit 控制不溢出 */
.tyrant-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  pointer-events: none;
  box-sizing: border-box;
}

/**
 * 暴君立绘：默认缩小隐藏；.visible 时直接满格呈现（无由小变大动画，走动视频即最终尺寸）
 */
.tyrant-sprite {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transform: scale(0.26);
  opacity: 0.8;
  filter: blur(1px);
  pointer-events: auto;
  overflow: hidden;
}

.tyrant-sprite.visible {
  transform: scale(1);
  opacity: 1;
  filter: blur(0) brightness(1);
}

/** 舔食者立绘 + 嘴部枢轴（扑咬时绕口部旋转） */
.tyrant-figure-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.tyrant-jaw-pivot {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 38%;
  transform: translateZ(0);
  box-sizing: border-box;
}

/** 铺满红框格：cover + 居中，避免底对齐把主体「沉到」下半窗 */
.tyrant-licker-img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/**
 * 趴窗阶段：整块玻璃盖在暴君前（z-index 更高），暴君在后方
 * 碎裂前瞬间才加压震颤 + 抓挠感（state-glass-tension）
 */
.window-cell.state-cling .tyrant-layer {
  z-index: 3;
}

.window-cell.state-cling .window-pane {
  z-index: 5;
}

.window-cell.state-cling .glass-fragment {
  opacity: 0;
  box-shadow: none;
}

.window-cell.state-cling .glass-fragment-grid {
  box-shadow: none;
  border: none;
  border-radius: 0;
  /** 不磨砂，便于看清背后走廊与暴君 */
  backdrop-filter: none;
}

.window-cell.state-cling .glass-fragment-grid::after {
  opacity: 0;
}

/** 玻璃未碎时，怪物应明显在玻璃后方（更暗、更雾化） */
.window-cell.state-cling .tyrant-sprite {
  filter: blur(1.35px) brightness(0.68) saturate(0.82);
  opacity: 0.78;
}

/** C：可视化提示——假怪/假人玻璃反光更“异常” */
.window-cell.enemy-decoy.state-cling .glass-fragment-grid::before,
.window-cell.enemy-civilian.state-cling .glass-fragment-grid::before {
  opacity: 0.9;
  animation: glass-reflection-sweep 1.25s ease-in-out infinite;
}

.window-cell.enemy-civilian.state-cling .glass-fragment-grid::before {
  background: linear-gradient(
    115deg,
    rgba(140, 210, 255, 0) 35%,
    rgba(140, 210, 255, 0.22) 48%,
    rgba(140, 210, 255, 0) 62%
  );
}

.window-cell.enemy-decoy.state-cling .glass-fragment-grid::before {
  background: linear-gradient(
    115deg,
    rgba(180, 255, 170, 0) 35%,
    rgba(180, 255, 170, 0.18) 48%,
    rgba(180, 255, 170, 0) 62%
  );
}

/** E：识破假怪强化——假怪反光更明显 */
.window-cell.enemy-decoy.enemy-decoy-reveal.state-cling .glass-fragment-grid::before {
  opacity: 1;
  filter: brightness(1.15) contrast(1.05);
}

.window-cell.state-glass-tension .window-pane {
  animation: glass-vibrate 0.1s linear infinite;
}

@keyframes glass-vibrate {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/**
 * 碎裂后：玻璃层压在暴君身体之上（视觉在前），点击穿透 pane 仍命中暴君
 * 血条由 .tyrant-hud（z-index:14）盖在暴君层与爆头视频之上
 */
.window-cell.state-broken .tyrant-layer {
  z-index: 4;
}

.window-cell.state-broken .window-pane {
  z-index: 8;
}

.window-cell.state-broken .glass-fragment {
  animation: glass-frag-shatter var(--glass-shatter-ms, 1050ms) cubic-bezier(0.12, 0.62, 0.18, 1) forwards;
  will-change: transform, opacity, filter;
}

/** 飞出 → 末段整片淡出消失（不再残留在画面上） */
@keyframes glass-frag-shatter {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
    filter: brightness(1.08) contrast(1.05);
  }
  8% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.02);
    filter: brightness(2.7) contrast(1.18);
  }
  22% {
    transform: translate3d(calc(var(--dx) * 0.52), calc(var(--dy) * 0.52), 0) rotate(calc(var(--rot) * 0.62))
      scale(0.98);
    opacity: 1;
    filter: brightness(1.5) contrast(1.12);
  }
  52% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot));
    opacity: 0.92;
  }
  72% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(0.93);
    opacity: 0.55;
  }
  86% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(0.9);
    opacity: 0.26;
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(0.86);
    opacity: 0;
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .window-cell.state-broken .glass-fragment {
    animation-duration: var(--glass-shatter-ms);
    animation-timing-function: ease-out;
  }
}

/** 战斗开始：整块玻璃层隐藏；怪物由 move 视频循环呈现（无扑咬动画） */
.window-cell.state-combat .window-pane {
  visibility: hidden !important;
  opacity: 0 !important;
}

.window-cell.state-combat .tyrant-layer {
  z-index: 6;
}

.scratch-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.03) 6px,
    rgba(255, 255, 255, 0.03) 7px
  );
  mask-image: radial-gradient(ellipse 70% 50% at 50% 60%, black 20%, transparent 75%);
}

/** 整块玻璃阶段不显示抓挠；加压阶段再显现 */
.window-cell.state-cling:not(.state-glass-tension) .scratch-overlay {
  opacity: 0;
}

.window-cell.state-glass-tension .scratch-overlay {
  opacity: 1;
  animation: scratch-flicker 0.35s steps(2) infinite;
}

@keyframes scratch-flicker {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.hp-bar-wrap {
  position: relative;
  width: 70%;
  max-width: 280px;
  height: 8px;
  margin: 0;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #444;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.hp-bar-wrap.show {
  opacity: 1;
}

.hp-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #5a1518, var(--accent));
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.12s linear;
}

.hit-zone {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  cursor: inherit;
  pointer-events: auto;
}

.hit-zone.head {
  top: 0;
  height: 36%;
}

.hit-zone.body {
  bottom: 0;
  height: 64%;
}

.side-panel {
  background: var(--panel);
  border-left: 1px solid #2a3238;
  padding: 12px;
  font-size: 12px;
  overflow-y: auto;
  z-index: 15;
}

.side-panel h2 {
  font-family: var(--hud-font);
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-panel h2:first-child {
  margin-top: 0;
}

.lb-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: #c5d0d6;
}

.lb-list li::marker {
  color: var(--accent);
}

.crosshair {
  position: fixed;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
}

@media (hover: none) and (pointer: coarse) {
  .crosshair {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    opacity: 0.95;
  }
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 80, 60, 0.95);
  box-shadow: 0 0 6px rgba(255, 50, 40, 0.8);
}

.crosshair::before {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  margin-left: -1px;
}

.crosshair::after {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  margin-top: -1px;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.screen {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  cursor: default;
}

.screen button {
  cursor: pointer;
}

.screen--hidden {
  display: none;
}

.screen-inner {
  text-align: center;
  max-width: min(92vw, 920px);
  padding: 24px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.title-glitch {
  font-family: var(--hud-font);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.15em;
  color: #e0e8ec;
  text-shadow:
    0 0 20px rgba(139, 0, 0, 0.6),
    2px 0 #ff000044;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 16px;
}

.hint {
  font-size: 13px;
  color: #8a9aa4;
  margin-bottom: 28px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  font-family: var(--hud-font);
  font-size: 14px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #a01820, #6a0e14);
  color: #fff;
  box-shadow: 0 4px 16px rgba(100, 0, 0, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: #2a3238;
  color: var(--text);
  margin-left: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #3a454c;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: #5a656c;
}

.go-reason {
  color: var(--muted);
  margin-bottom: 16px;
}

.poster-preview-wrap {
  margin: 14px auto;
  border: 1px solid #333;
  display: inline-block;
  max-width: 100%;
  /** 放大海报：优先吃掉中间空白，但不遮挡底部按钮 */
  width: min(78vw, 520px);
  max-height: min(62vh, 720px);
  overflow: hidden;
}

#posterCanvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(62vh, 720px);
}

.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px auto 6px;
  width: min(92vw, 860px);
}

.upgrade-card {
  text-align: left;
  padding: 14px 14px 12px;
  border: 1px solid #2f3a42;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.9), rgba(6, 8, 10, 0.8));
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.upgrade-card:hover {
  border-color: rgba(160, 24, 32, 0.7);
  box-shadow: 0 0 0 1px rgba(160, 24, 32, 0.3), 0 10px 30px rgba(0, 0, 0, 0.55);
}

.upgrade-card h3 {
  margin: 0 0 6px;
  font-family: var(--hud-font);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.upgrade-card p {
  margin: 0;
  color: #9aa8b0;
  font-size: 12px;
  line-height: 1.5;
}

.upgrade-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid #3a454c;
  color: #c5d0d6;
  border-radius: 999px;
  margin-bottom: 10px;
  opacity: 0.9;
}

@media (max-width: 860px) {
  .upgrade-grid {
    grid-template-columns: 1fr;
  }
}

.screen--title .screen-inner {
  animation: fade-in 1s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headshot-video-fx-cell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  object-fit: cover;
}

@media (max-width: 900px) {
  #app {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }
}
