/* Result page: same Figma design language as home and ritual; no legacy theme background. */
body.result {
  background: var(--figma-background-fill);
  background-image: none;
  color: var(--figma-text-p-normal-colour-normal);
  font-family: var(--figma-text-p-normal-font-family);
}
body.result::after { display: none; }
body.result .scroll { max-width: 1120px; padding: 80px 30px 60px; }
body.result .header { display: none; }
.result-area { color: var(--figma-text-p-normal-colour-normal); }
.result-area:focus { outline: none; }
.result-area .question-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  border: 0;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 720px;
  text-align: center;
}
.result-area .question-display .q-category { margin: 0; color: var(--figma-text-title-supplementary-colour-supp-passive); font-family: var(--figma-text-title-supplementary-font-family); font-size: var(--figma-text-title-supplementary-font-size-normal); font-weight: var(--figma-text-title-supplementary-font-weight); letter-spacing: var(--figma-text-title-supplementary-letter-spacing); line-height: normal; text-box-edge: cap alphabetic; text-box-trim: trim-both; }
.result-area .question-display .q-text { margin: 0; color: var(--figma-text-p-normal-colour-normal); font-family: var(--figma-text-p-normal-font-family); font-size: var(--figma-text-p-normal-font-size); line-height: var(--figma-text-p-normal-line-height-normal); font-weight: 400; text-box-edge: cap alphabetic; text-box-trim: trim-both; }
.result-area .hexagram-row { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; width: min(100%, 800px); margin: 0 auto; }
.result-area .hexagram-row:has(#changedHexagramCard[hidden]) { width: 360px; }
.result-area .hexagram-card { flex: 0 0 360px; min-width: 0; min-height: 320px; position: relative; background: var(--figma-gua-card-fill); border: 0; border-radius: var(--figma-gua-card-corner-radius); box-shadow: 0 1px 2px var(--figma-gua-card-drop-shadow), inset 0 -2px 8px var(--figma-gua-card-inner-glow), inset 0 0 0 var(--figma-gua-card-stroke-weight) var(--figma-gua-card-stroke-normal); padding: 20px; }
.result-area .hexagram-card[hidden] { display: none; }
.result-area .hexagram-card::before { content: attr(data-label); position: absolute; top: 22px; left: 50%; transform: translateX(-50%); background: transparent; color: var(--figma-text-title-supplementary-colour-supp-passive); font-family: var(--figma-text-title-supplementary-font-family); font-size: var(--figma-text-title-supplementary-font-size-normal); letter-spacing: var(--figma-text-title-supplementary-letter-spacing); padding: 0; }
.result-area .hex-name { text-align: center; color: var(--figma-gua-title-colour); font-family: var(--figma-gua-title-font-family); font-size: var(--figma-gua-title-font-size); font-weight: var(--figma-gua-title-font-weight); letter-spacing: var(--figma-gua-title-letter-spacing); line-height: normal; margin: 37px 0 12px; text-shadow: 0 1px 1px var(--figma-gua-title-drop-shadow), 0 -1px 1px var(--figma-gua-title-outer-glow); text-box-edge: cap alphabetic; text-box-trim: trim-both; }
.result-area .hex-subtitle, .result-area .hex-number, .result-area .hex-number span { text-align: center; color: var(--figma-text-info-supplementary-colour-passive); font-family: var(--figma-text-info-supplementary-font-family); font-size: var(--figma-text-info-supplementary-font-size); font-weight: var(--figma-text-info-supplementary-font-weight); letter-spacing: var(--figma-text-info-supplementary-letter-spacing-web); line-height: normal; }
.result-area .hex-subtitle, .result-area .hex-number span { text-box-edge: cap alphabetic; text-box-trim: trim-both; }
.result-area .hex-subtitle { margin-bottom: 23px; }
.result-area .hex-number { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.result-area .arrow { display: flex; flex: 1 1 40px; min-width: 24px; align-items: center; justify-content: center; align-self: center; color: var(--figma-gua-title-colour); font-family: var(--figma-gua-title-font-family); font-size: 24px; font-weight: var(--figma-gua-title-font-weight); letter-spacing: var(--figma-gua-title-letter-spacing); line-height: 1; opacity: 1; text-shadow: 0 1px 1px var(--figma-gua-title-drop-shadow), 0 -1px 1px var(--figma-gua-title-outer-glow); }
.result-area .arrow[hidden] { display: none; }
.result-area .lines { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-bottom: 16px; }
/* grid-template-rows 原本是 repeat(6, 1fr) 配容器 height:125px：容器高度是
   definite 时，1fr 严格按比例切成 6 等份，每行固定 (125-5*8)/6≈14.17px。
   把容器高度改成 min-height 后，容器对 1fr 轨道来说变成 indefinite——按
   CSS Grid 规范，indefinite 容器里所有 1fr 轨道会被"拉平"成其中最高的那一
   行所需要的高度（谁内容最高，全部六行陪它一起变高），实测从 125px 涨到
   144px：六爻本身高度都一样，只是每行凭空多出一圈没用到的空白，行与行的
   视觉间距因此变松，跟 Figma 的紧凑排布对不上。改成 repeat(6, auto) 后
   每行只按自己的内容独立定高，不再被最高的那一行拖累；下面 .line-row 补
   回原本 125px 方案换算出的每行下限（14.17px 取整成 14px，正常内容原样
   保持 Figma 的紧凑间距，只有内容真的超过这个下限(如系统字体放大)时才会
   单独长高）。 */
.result-area .lines.annotated { display: grid; grid-template-rows: repeat(6, auto); gap: 8px; margin-bottom: 23px; }
.result-area .line-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 14px; }
.result-area .line-row .line { justify-content: center; width: 90px; }
.result-area .line { display: flex; gap: 10px; align-items: center; height: 12px; position: relative; }
.result-area .line-seg { height: 12px; background: var(--figma-gua-yao-fill-still); }
.result-area .line.yang .line-seg { width: 90px; }
.result-area .line.yin .line-seg { width: 40px; }
.result-area .line.changing { opacity: 1; }
.result-area .line.changing .line-seg { background: var(--figma-gua-yao-fill-move); }
.result-area .line-anno { display: flex; align-items: center; justify-content: flex-end; gap: var(--figma-text-info-supplementary-gap-horizontal); min-width: 0; color: var(--figma-text-info-supplementary-colour-passive); font-family: var(--figma-text-info-supplementary-font-family); font-size: var(--figma-text-info-supplementary-font-size); font-weight: var(--figma-text-info-supplementary-font-weight); letter-spacing: var(--figma-text-info-supplementary-letter-spacing-web); line-height: 1; white-space: nowrap; }
.result-area .line-kinship, .result-area .line-stem-branch, .result-area .line-state, .result-area .line-hidden, .result-area .line-mark { color: var(--figma-text-info-supplementary-colour-passive); font-family: var(--figma-text-info-supplementary-font-family); font-size: var(--figma-text-info-supplementary-font-size); font-weight: var(--figma-text-info-supplementary-font-weight); letter-spacing: var(--figma-text-info-supplementary-letter-spacing-web); line-height: 1; text-box-edge: cap alphabetic; text-box-trim: trim-both; }
.result-area .line-mark, .result-area .line-anno.yongshen, .result-area .line-anno.yongshen-alt { color: var(--figma-text-info-supplementary-colour-active); }
/* 六亲、干支两个子 span 上一条规则各自设了辅助色，强调色只写在父层 .line-anno 上会被
   盖掉——用神在 2026-09-26 前一直是灰色。子层改为继承父层。化爻标注刻意不上强调色
   （用户决定：普通用户不看化爻，保持辅助灰）。 */
.result-area .line-anno.yongshen > span, .result-area .line-anno.yongshen-alt > span { color: inherit; }
/* 世/应徽标的边框+内边距会让它所在的行比其余行更高（本卦卡固定会有世应两行、
   变卦卡从不显示世应，两边六行凭空错位）；用等量负 margin-block 抵消掉徽标
   自己占的高度，视觉上仍是完整的描边小方块，但不再撑高所在行，六行在两张
   卦卡上都统一停在 .line-row 的 min-height 地板上，纵向对齐。 */
.result-area .line-mark.shiying { border: var(--figma-text-info-supplementary-stroke-weight) solid var(--figma-text-info-supplementary-colour-active); padding: var(--figma-text-info-supplementary-padding-tb) var(--figma-text-info-supplementary-padding-lr); line-height: 1; margin-block: calc(-1 * (var(--figma-text-info-supplementary-padding-tb) + var(--figma-text-info-supplementary-stroke-weight))); }
.result-area .line-anno-group { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 1px; min-width: 0; text-align: right; white-space: nowrap; }
.result-area .line-mark-group { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.result-area .lines.annotated .line.changing::after { display: none; }
.result-area .ai-prompt-panel { display: grid; grid-template-columns: 400px 360px; gap: 40px; width: min(100%, 800px); margin: 40px auto 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.result-area .ai-prompt-copy-column { display: grid; align-content: start; gap: 26px; }
.result-area .ai-prompt-intro { display: grid; gap: 16px; width: 400px; }
/* 像素字 Fusion Pixel 按 12px 绘制，只有 12 的整数倍字号每个像素点才等大、不发糊，
   所以这里不用 28px 的 header token，桌面与手机统一取 24px（2026-09-26）。 */
.result-area .ai-prompt-title { color: var(--figma-text-title-info-colour-normal); font-family: var(--figma-text-title-header-font-family); font-size: 24px; font-weight: var(--figma-text-title-header-font-weight); letter-spacing: var(--figma-text-title-header-letter-spacing); }
.result-area .ai-prompt-hint { margin: 0; color: var(--figma-text-p-normal-colour-description); font-family: var(--figma-text-p-normal-font-family); font-size: var(--figma-text-p-normal-font-size); font-weight: 400; line-height: var(--figma-text-p-normal-line-height-normal); letter-spacing: var(--figma-text-p-normal-letter-spacing); }
.result-area .ai-prompt-hint span { color: var(--figma-text-p-normal-colour-link); font-weight: var(--figma-text-p-normal-font-weight-link); }
.result-area .ai-prompt-copy-actions { display: flex; gap: 16px; }
.result-area .copy-btn { width: 175px; min-height: 80px; }
.result-area .ai-prompt-preview-panel { display: flex; flex-direction: column; gap: 16px; width: 360px; height: 240px; padding: 8px 12px; overflow: hidden; border-radius: var(--figma-text-box-corner-radius); background: var(--figma-text-box-fill); box-shadow: inset 0 -2px 8px var(--figma-text-box-inner-glow), inset 0 0 0 var(--figma-text-box-stroke-weight) var(--figma-text-box-stroke-normal); }
.result-area .prompt-tabs { display: flex; gap: 8px; width: 100%; border: 0; }
.result-area .prompt-tab { flex: 1 0 0; min-height: var(--figma-min-touch-target); padding: 0 var(--figma-button-general-padding-lr); border: 0; border-radius: var(--figma-button-general-corner-radius); color: var(--figma-text-button-normal-colour-normal); font-family: var(--figma-text-button-normal-font-family); font-size: 12px; font-weight: var(--figma-text-button-normal-font-weight); letter-spacing: var(--figma-text-button-normal-letter-spacing); background: transparent; box-shadow: inset 0 2px 0 var(--figma-button-general-inner-glow), inset 0 -2px 0 var(--figma-button-general-inner-shadow), inset 0 0 0 var(--figma-button-general-stroke-weight) var(--figma-button-general-stroke-available); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 120ms ease; }
.result-area .prompt-tab.active { background: var(--figma-button-general-fill-unavailable); box-shadow: inset 0 2px 0 var(--figma-button-general-inner-shadow), inset 0 0 0 var(--figma-button-general-stroke-weight) var(--figma-button-general-stroke-supplementary); }
.result-area .prompt-tab:not(.active) { background: var(--figma-button-general-fill-supplementary); }
.result-area .prompt-tab + .prompt-tab { border-left: 0; }
.result-area .prompt-tab:active, .result-area .copy-btn:active, .result-area .again-btn:active { transform: translateY(1px); }
.result-area .copy-btn:focus-visible,
.result-area .prompt-tab:focus-visible,
.result-area .again-btn:focus-visible {
  outline: 2px solid var(--figma-base-colours-yellow-02);
  outline-offset: -2px;
}
@media (forced-colors: active) {
  .result-area .copy-btn:focus-visible,
  .result-area .prompt-tab:focus-visible,
  .result-area .again-btn:focus-visible {
    outline-color: Highlight;
  }
}
@media (hover: hover) and (pointer: fine) {
  .result-area .copy-btn:hover { filter: brightness(1.06); }
  .result-area .again-btn:hover { filter: brightness(1.06); }
}
.result-area .ai-prompt-preview { flex: 1; min-height: 0; margin: 0; padding: 0; overflow: auto; border: 0; background: transparent; box-shadow: none; color: var(--figma-text-p-normal-colour-description); font-family: var(--figma-text-p-normal-font-family); font-size: var(--figma-text-p-normal-font-size-smaller); font-weight: 400; line-height: var(--figma-text-p-normal-line-height-smaller); letter-spacing: var(--figma-text-p-normal-letter-spacing); white-space: pre-wrap; transition: opacity 120ms ease; }
.result-area .ai-prompt-preview.swapping { opacity: 0; }
.result-area .btn-row { display: flex; justify-content: center; margin-top: 52px; }
body.result.returning-home .result-area { animation: slideIn 220ms ease reverse both; pointer-events: none; }
body.home-entering .question-section { animation: slideIn 350ms ease both; }
/* 起卦完成后的唯一编排式转场：结果区沿仪式舞台的中轴接续出现，卦卡从
   中线展开，问题与操作区随后落定。默认状态始终可见，仅在切页 class 存在时播放。 */
body.result-entering .result-area { animation: result-shell-in 720ms var(--figma-ease-out) both; }
body.result-entering .result-area .question-display { animation: result-question-in 360ms var(--figma-ease-out) 40ms both; }
body.result-entering .result-area .hexagram-row { animation: result-hexagram-in 620ms var(--figma-ease-out) 80ms both; transform-origin: center; }
body.result-entering .result-area .ai-prompt-panel,
body.result-entering .result-area .btn-row { animation: result-actions-in 420ms var(--figma-ease-out) 220ms both; }
.result-area .again-btn { flex: 0 0 224px; width: 224px; min-height: 80px; margin-inline: auto; }
/* 结果页两栏卡片与提示词面板共用同一个窄屏断点（--figma-breakpoint-narrow，
   见 figma-tokens.css 顶部断点注册表），避免两者各自的折叠时机之间露出
   横向溢出的缝隙。 */
@media (max-width: 759px) {
  /* node 132:92：本卦/箭头/变卦这组的间距是 16px，比之前沿用的 28px 紧凑。 */
  .result-area .hexagram-row, .result-area .hexagram-row:has(#changedHexagramCard[hidden]) { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
  .result-area .arrow { transform: rotate(90deg); }
  /* Figma zhan6yao-drafts node 132:85（result_mobile，390×1510）：卦卡宽度
     340px（比之前沿用的 360px 稍窄）。 */
  /* flex-direction 是 column 时 flex-basis 控制的是高度；写死 0 0 320px 会
     把桌面版已经改成 min-height 的卡片在手机上重新焊回固定高度，内容一多
     就会溢出卡片底部、盖到下一张卡开头。改成 flex:0 0 auto 只让宽度收窄，
     高度交给 min-height（继承桌面版规则）按内容自然撑高。 */
  .result-area .hexagram-card { flex: 0 0 auto; width: min(100%, 340px); }
  body.result .scroll { padding: 54px 20px 70px; }
  /* node 132:202（restart button）：跟首页开始摇掷按钮同规格，铺满内容栏。原先写死
     320px，比上方 335px 的卦卡与复制按钮组两侧各缩进 7.5px，边缘对不齐（2026-09-27）。 */
  .result-area .again-btn { flex: 0 0 auto; width: 100%; }
  .result-area .ai-prompt-panel { grid-template-columns: 1fr; gap: 24px; margin-top: 44px; }
  .result-area .ai-prompt-intro, .result-area .ai-prompt-preview-panel { width: 100%; }
  /* node 132:182：mobile 版标题/说明文字改成居中对齐，对齐用户已更正的
     Figma mobile 稿（原先这里跟桌面版一样是左对齐，用户确认那是设计稿的
     错；桌面版两栏布局暂不动，只改这个断点范围内的对齐）。 */
  .result-area .ai-prompt-intro { text-align: center; gap: 12px; }
  /* 2026-09-26 手机层级 critique：顶部类别跟问题同为 16px，灰色类别反而压在
     用户自己的问题上面；类别退成 12px 像素字小标签，让问题本身领头。 */
  .result-area .question-display { gap: 12px; }
  .result-area .question-display .q-category { color: var(--figma-text-p-normal-colour-description); font-family: var(--figma-text-title-header-font-family); font-size: 12px; letter-spacing: 1px; }
  /* 说明文字比标题低两级（24 → 14），不再跟 16px 正文一个音量。 */
  .result-area .ai-prompt-hint { font-size: var(--figma-text-p-normal-font-size-smaller); line-height: var(--figma-text-p-normal-line-height-smaller); }
  /* 手机版不放提示词预览（用户 2026-09-26 决定）：窄屏上预览字不管调多大都
     只能看几行，又跟两个复制按钮重复一组「简明／深度」切换；复制按钮直接从
     #aiPromptText 的 dataset 取全文，隐藏面板不影响复制。桌面两栏保留预览。 */
  .result-area .ai-prompt-preview-panel { display: none; }
  .result-area .ai-prompt-copy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 复制是这一页的目的：按钮字从 18px 提到 24px（像素字 12 的倍数，比 18px 更锐利），
     跟「重新起占」同一字级，而不是比卦名、标题都小一号。 */
  .result-area .copy-btn { width: 100%; grid-column: auto; grid-row: auto; justify-self: stretch; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  body.result.returning-home .result-area { animation: slideInReduced 120ms ease reverse both; }
  body.home-entering .question-section { animation: slideInReduced 120ms ease both; }
  body.result-entering .result-area,
  body.result-entering .result-area .question-display,
  body.result-entering .result-area .hexagram-row,
  body.result-entering .result-area .ai-prompt-panel,
  body.result-entering .result-area .btn-row { animation: slideInReduced 160ms ease both; }
  .result-area .copy-btn.is-copied > img { animation: none; }
  .result-area .again-btn::before { animation: none; background-position: 30% 0, 0 0; }
}
@media (forced-colors: active) {
  .result-area .again-btn::before { background: Canvas; animation: none; }
}
@keyframes slideInReduced {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes result-shell-in {
  from { opacity: 0; }
  35%, to { opacity: 1; }
}
@keyframes result-question-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes result-hexagram-in {
  from { opacity: 0; transform: scaleY(.9); clip-path: inset(46% 0 46%); }
  56%  { opacity: 1; clip-path: inset(0); }
  to   { opacity: 1; transform: scaleY(1); clip-path: inset(0); }
}
@keyframes result-actions-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* 成卦交接由整屏 View Transition 承载。CRT 关闭时使用柔和明暗交接；
   CRT 开启时由下方规则改写为显像管收线与展开。 */
html.ritual-handoff::view-transition { pointer-events: none; }
html.ritual-handoff::view-transition-old(root) {
  animation: ritual-handoff-root-out 300ms cubic-bezier(.65, 0, .35, 1) both;
}
html.ritual-handoff::view-transition-new(root) {
  animation: ritual-handoff-root-in 640ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes ritual-handoff-root-out {
  to { opacity: 0; filter: brightness(.82); }
}
@keyframes ritual-handoff-root-in {
  from { opacity: 0; filter: brightness(1.12); }
  to { opacity: 1; filter: brightness(1); }
}

/* Overdrive 3/3：CRT 开启时，整幅旧画面沿显像管中线收束，结果页再由亮线展开。
   关闭 CRT 时沿用上方柔和淡入淡出。 */
html.ritual-handoff.crt-on::view-transition-group(root) { z-index: 10; }
html.ritual-handoff.crt-on::view-transition-image-pair(root) {
  isolation: isolate;
  overflow: clip;
}
html.ritual-handoff.crt-on::view-transition-old(root) {
  animation: ritual-crt-collapse 440ms cubic-bezier(.77, 0, .175, 1) both;
  will-change: clip-path, filter, opacity;
}
html.ritual-handoff.crt-on::view-transition-new(root) {
  animation: ritual-crt-expand 620ms cubic-bezier(.16, 1, .3, 1) 300ms both;
  will-change: clip-path, filter, opacity;
}
@keyframes ritual-crt-collapse {
  0%   { opacity: 1; clip-path: inset(0); filter: brightness(1) contrast(1); }
  18%  { opacity: 1; clip-path: inset(1.5% 0); filter: brightness(1.03) contrast(1.02); }
  58%  { opacity: 1; clip-path: inset(28% .5%); filter: brightness(1.14) contrast(1.07); }
  82%  { opacity: 1; clip-path: inset(46% 3%); filter: brightness(1.55) contrast(1.18); }
  94%  { opacity: 1; clip-path: inset(49.25% 8%); filter: brightness(2.4) contrast(1.32); }
  100% { opacity: 0; clip-path: inset(49.75% 14%); filter: brightness(2.8) contrast(1.4); }
}
@keyframes ritual-crt-expand {
  0%   { opacity: 0; clip-path: inset(49.75% 15%); filter: brightness(2.6) contrast(1.36); }
  6%   { opacity: 1; clip-path: inset(49.4% 12%); filter: brightness(2.3) contrast(1.3); }
  20%  { opacity: 1; clip-path: inset(47.5% 4%); filter: brightness(1.75) contrast(1.18); }
  45%  { opacity: 1; clip-path: inset(24% 0); filter: brightness(1.16) contrast(1.06); }
  70%  { opacity: 1; clip-path: inset(1.5% 0); filter: brightness(1.04) contrast(1.02); }
  100% { opacity: 1; clip-path: inset(0); filter: brightness(1) contrast(1); }
}

/* 接触不良只作为换屏顶层的瞬时信号层：内容快照保持原比例，离散感由这几条
   细线承担。实际功能层永远不可见、不可点击，也不会留在换屏完成后的页面。 */
.crt-signal-lines {
  position: fixed;
  top: 22%;
  right: 0;
  left: 0;
  height: 51%;
  pointer-events: none;
  opacity: 0;
  contain: strict;
}
.crt-signal-lines::before,
.crt-signal-lines::after {
  content: '';
  position: absolute;
  display: block;
  background: color-mix(in srgb, var(--figma-gua-yao-fill-move) 68%, transparent);
}
.crt-signal-lines::before {
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  box-shadow:
    0 29vh 0 color-mix(in srgb, var(--figma-gua-yao-fill-move) 44%, transparent),
    0 51vh 0 color-mix(in srgb, var(--figma-gua-yao-fill-still) 62%, transparent);
}
.crt-signal-lines::after {
  top: 14vh;
  right: 4%;
  left: 9%;
  height: 2px;
  box-shadow:
    0 19vh 0 color-mix(in srgb, var(--figma-gua-yao-fill-still) 54%, transparent),
    0 37vh 0 color-mix(in srgb, var(--figma-gua-yao-fill-move) 36%, transparent);
}
html.ritual-handoff.crt-on .crt-signal-lines {
  opacity: 1;
  view-transition-name: crt-signal-lines;
}
html.ritual-handoff.crt-on::view-transition-group(crt-signal-lines) {
  z-index: 40;
  animation: ritual-crt-signal-lines 920ms steps(1, end) both;
}
html.ritual-handoff.crt-on::view-transition-old(crt-signal-lines) {
  animation: none;
  mix-blend-mode: screen;
}
html.ritual-handoff.crt-on::view-transition-new(crt-signal-lines) { opacity: 0; }
@keyframes ritual-crt-signal-lines {
  0%, 10%, 19%, 31%, 43%, 100% { opacity: 0; transform: translate3d(0, 0, 0); }
  11% { opacity: .38; transform: translate3d(0, -2px, 0); }
  17% { opacity: .12; transform: translate3d(0, 1px, 0); }
  32% { opacity: .72; transform: translate3d(0, 3px, 0); }
  38% { opacity: .2; transform: translate3d(0, -1px, 0); }
  44% { opacity: .48; transform: translate3d(0, 1px, 0); }
  49% { opacity: 0; transform: translate3d(0, 0, 0); }
}
@media (forced-colors: active) {
  html.ritual-handoff.crt-on::view-transition-old(root) {
    animation: ritual-handoff-root-out 300ms cubic-bezier(.65, 0, .35, 1) both;
  }
  html.ritual-handoff.crt-on::view-transition-new(root) {
    animation: ritual-handoff-root-in 640ms cubic-bezier(.16, 1, .3, 1) both;
  }
  html.ritual-handoff.crt-on .crt-signal-lines { view-transition-name: none; }
}
