/* 儿童 CT 互动演示 — 样式 */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap");

:root {
  --bg-1: #eaf6ff;
  --bg-2: #f3eefc;
  --bg-3: #fff9f2;
  --ink: #2a3d52;
  --ink-soft: #5a6f86;
  --accent: #4da8d8;
  --accent-2: #7b8fd4;
  --accent-3: #6ec8c0;
  --cream: #fffdf9;
  --card: rgba(255, 253, 249, 0.92);
  --shadow: 0 12px 40px rgba(74, 120, 160, 0.18);
  --radius: 28px;
  --radius-sm: 16px;
  --btn-h: 64px;
  --font: "Nunito", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  /* 平板展厅：禁止双指缩放与过度滚动 */
  touch-action: manipulation;
  overscroll-behavior: none;
}

body.ct-app {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, #d9f0ff 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #e8dffc 0%, transparent 50%),
    radial-gradient(800px 500px at 50% 100%, #fff1e0 0%, transparent 45%),
    linear-gradient(165deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  /* 禁止选中复制 / 长按呼出菜单 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.ct-app img,
body.ct-app video,
body.ct-app a,
body.ct-app button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
}

body.ct-app img,
body.ct-app video {
  /* 阻断系统「存储图像 / 分享」长按菜单；交互交给父容器 */
  pointer-events: none;
  -webkit-touch-callout: none !important;
}

/* 结果区图片不可拖/长按 */
.result-viewer img,
.media-shell video {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none;
}

body.ct-app input,
body.ct-app textarea {
  -webkit-user-select: text;
  user-select: text;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient-stars::before,
.ambient-stars::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    80px 120px 0 2px rgba(255, 255, 255, 0.7),
    200px 60px 0 1px rgba(255, 255, 255, 0.55),
    340px 180px 0 2px rgba(255, 255, 255, 0.65),
    520px 90px 0 1px rgba(255, 255, 255, 0.5),
    680px 220px 0 2px rgba(255, 255, 255, 0.6),
    120px 360px 0 1px rgba(255, 255, 255, 0.45),
    420px 400px 0 2px rgba(255, 255, 255, 0.55),
    760px 380px 0 1px rgba(255, 255, 255, 0.5);
  animation: twinkle 4s ease-in-out infinite;
}
.ambient-stars::after {
  left: 40px;
  top: 80px;
  animation-delay: -2s;
}

.ambient-bubbles::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 70%, rgba(110, 200, 192, 0.2) 0 40px, transparent 41px),
    radial-gradient(circle at 85% 60%, rgba(123, 143, 212, 0.18) 0 55px, transparent 56px),
    radial-gradient(circle at 60% 85%, rgba(77, 168, 216, 0.16) 0 70px, transparent 71px);
  animation: floaty 12s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-18px); }
}

.top-bar,
.progress-steps,
.stage-host,
.disclaimer,
.debug-panel {
  position: relative;
  z-index: 1;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) 20px 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, #7ee0ff, #7b8fd4, #a8e6cf, #7ee0ff);
  box-shadow: inset 0 0 0 5px #fff;
}

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--ink);
}

.top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 16px 4px;
  max-width: 900px;
  margin: 0 auto;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.step-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.step-pill.is-active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(77, 168, 216, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(77, 168, 216, 0.2);
}
.step-pill.is-active .dot { opacity: 1; background: var(--accent); }

.step-pill.is-done {
  color: var(--accent-3);
  background: rgba(168, 230, 207, 0.35);
}
.step-pill.is-done .dot { opacity: 1; background: var(--accent-3); }

.stage-host {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px calc(24px + var(--safe-b));
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: stretch;
}

.stage {
  width: 100%;
  display: none;
  animation: stageIn 0.45s ease both;
}
.stage.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #3d8ec0, #6b7fd4 50%, #4fb8ae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 32em;
}

.hint {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

.card {
  width: min(100%, 720px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
  backdrop-filter: blur(8px);
}

.illustration {
  width: min(100%, 420px);
  aspect-ratio: 1.2;
  position: relative;
  display: grid;
  place-items: center;
}

.ct-ring {
  width: min(72vw, 280px);
  height: min(72vw, 280px);
  border-radius: 50%;
  border: 14px solid #b8dff5;
  box-shadow:
    inset 0 0 0 10px #fff,
    0 0 0 8px rgba(126, 224, 255, 0.25),
    var(--shadow);
  position: relative;
  background:
    radial-gradient(circle at 50% 55%, #fff7ef 0 38%, transparent 39%),
    linear-gradient(145deg, #e8f6ff, #f5effc);
  animation: ringSpin 18s linear infinite;
}

.ct-ring::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 3px dashed rgba(123, 143, 212, 0.45);
  animation: ringSpin 28s linear infinite reverse;
}

.ct-ring .bed {
  position: absolute;
  width: 46%;
  height: 18%;
  bottom: 28%;
  left: 27%;
  background: linear-gradient(90deg, #9ec9e8, #c5e4f7);
  border-radius: 12px;
  box-shadow: 0 4px 0 #7ba8c0;
}

.ct-ring .scan-beam {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 6px;
  top: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #7ee0ff, transparent);
  animation: beam 2.4s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
@keyframes beam {
  0%, 100% { top: 28%; opacity: 0.35; }
  50% { top: 58%; opacity: 0.95; }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 640px;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  min-height: var(--btn-h);
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, opacity 0.2s;
  touch-action: manipulation;
  user-select: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}
.btn:focus-visible {
  outline: 3px solid #7ee0ff;
  outline-offset: 3px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4da8d8, #6b8fd4);
  color: #fff;
  box-shadow: 0 10px 24px rgba(77, 168, 216, 0.4);
  min-width: min(100%, 240px);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 14px 28px rgba(77, 168, 216, 0.5);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 3px solid rgba(77, 168, 216, 0.35);
  box-shadow: 0 6px 16px rgba(74, 120, 160, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(74, 120, 160, 0.1);
}

.prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  width: 100%;
}

.prep-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-10px);
  animation: itemIn 0.45s ease forwards;
}

.prep-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dff3ff, #ebe4ff);
  font-size: 1.35rem;
  flex-shrink: 0;
}

@keyframes itemIn {
  to { opacity: 1; transform: translateX(0); }
}

.media-shell {
  width: min(100%, 560px);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  /* 与竖版插画纸白背景无缝衔接，避免左右黑边 */
  background: #f7f8fa;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 640px);
}

.media-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: #f7f8fa;
  display: block;
  /* 略放大裁切边缘留白，突出人物主体 */
  transform: scale(1.1);
  transform-origin: center center;
}

.media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(20, 40, 60, 0.55);
  color: #fff;
  text-align: center;
  padding: 20px;
  font-weight: 700;
}

.media-overlay[hidden] {
  display: none !important;
}

.placeholder-media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #f7f8fa, #eef4fa);
  color: #5a6f86;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  min-height: 240px;
}

.countdown-num {
  font-family: var(--display);
  font-size: clamp(5rem, 22vw, 9rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  animation: countPop 0.85s ease;
  text-shadow: 0 8px 30px rgba(77, 168, 216, 0.35);
}

@keyframes countPop {
  0% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.scan-layout {
  width: 100%;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.scan-progress-wrap {
  width: min(100%, 720px);
}

.scan-progress {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(74, 120, 160, 0.15);
  position: relative;
}

.scan-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ec8c0, #4da8d8, #7b8fd4);
  transition: width 0.15s linear;
  position: relative;
}

.scan-progress > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: sheen 1.4s linear infinite;
}

@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.scan-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hold-hint {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: #3d8ec0;
  text-align: center;
}

.energy-ball {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background:
    radial-gradient(circle at 35% 30%, #fff, #7ee0ff 45%, #4da8d8 100%);
  box-shadow:
    0 0 0 6px rgba(126, 224, 255, 0.35),
    0 12px 28px rgba(77, 168, 216, 0.45);
  color: #1a3a4a;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  touch-action: none;
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
}
.energy-ball:hover:not(:disabled) {
  transform: scale(1.05);
}
.energy-ball:active,
.energy-ball.is-held {
  transform: scale(0.94);
  box-shadow:
    0 0 0 10px rgba(110, 200, 192, 0.45),
    0 8px 20px rgba(77, 168, 216, 0.4);
}
.energy-ball:focus-visible {
  outline: 3px solid #7b8fd4;
  outline-offset: 4px;
}

.scan-line-fx {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7ee0ff, transparent);
  animation: scanLine 2s ease-in-out infinite;
  opacity: 0.8;
  z-index: 2;
}

@keyframes scanLine {
  from { top: 8%; }
  to { top: 90%; }
}

.mini-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid #c5e4f7;
  border-top-color: #4da8d8;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-visual {
  width: min(100%, 280px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}

.processing-visual .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid rgba(77, 168, 216, 0.2);
  border-top-color: #4da8d8;
  animation: spin 1.2s linear infinite;
}

.processing-visual .ring.slow {
  inset: 18px;
  border-top-color: #7b8fd4;
  animation-duration: 2s;
  animation-direction: reverse;
}

.data-lines {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.5;
}
.data-lines span {
  display: block;
  height: 2px;
  margin: 8px 0;
  background: linear-gradient(90deg, transparent, #7ee0ff, transparent);
  animation: dataPulse 1.2s ease-in-out infinite;
}
.data-lines span:nth-child(2) { animation-delay: 0.15s; }
.data-lines span:nth-child(3) { animation-delay: 0.3s; }
.data-lines span:nth-child(4) { animation-delay: 0.45s; }

@keyframes dataPulse {
  0%, 100% { opacity: 0.25; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

.success-burst {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}
.success-burst .check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6ec8c0, #4da8d8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  animation: countPop 0.6s ease;
}
.success-burst .spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd66b;
  animation: spark 1.2s ease-out infinite;
}
.success-burst .spark:nth-child(2) { top: 8px; left: 20px; animation-delay: 0.1s; }
.success-burst .spark:nth-child(3) { top: 0; right: 24px; background: #7ee0ff; animation-delay: 0.2s; }
.success-burst .spark:nth-child(4) { bottom: 12px; left: 10px; background: #c5a3ff; animation-delay: 0.3s; }
.success-burst .spark:nth-child(5) { bottom: 6px; right: 14px; animation-delay: 0.15s; }

@keyframes spark {
  0% { transform: scale(0.4) translateY(0); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1) translateY(-28px); opacity: 0; }
}

.result-viewer {
  width: min(100%, 560px);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(126, 224, 255, 0.45),
    0 0 40px rgba(77, 168, 216, 0.35),
    var(--shadow);
  background: #f7f8fa;
  cursor: default;
  touch-action: manipulation;
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 640px);
  -webkit-user-select: none;
  user-select: none;
}

.result-viewer img#result-img,
.result-viewer > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 40%;
  margin: 0;
  filter: blur(14px);
  opacity: 0.35;
  transition: filter 1.8s ease, opacity 1.8s ease, transform 0.2s;
  transform: scale(1.06);
  transform-origin: center center;
}

.result-viewer.is-revealed img#result-img,
.result-viewer.is-revealed > img {
  filter: blur(0);
  opacity: 1;
}

.result-viewer .scan-mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(126, 200, 240, 0.18) 0%,
    transparent 38%,
    transparent 62%,
    rgba(123, 143, 212, 0.14) 100%
  );
  mix-blend-mode: multiply;
}

.result-viewer .result-scanline {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(126, 224, 255, 0.7);
  animation: scanLine 3s linear infinite;
}

.result-copy {
  text-align: center;
  max-width: 36em;
}
.result-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
  color: var(--ink);
}
.result-copy p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.05rem;
}

.disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
  padding: 0 16px calc(12px + var(--safe-b));
  margin: 0;
}

.debug-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  width: min(320px, calc(100vw - 24px));
  max-height: 50vh;
  overflow: auto;
  background: rgba(20, 30, 45, 0.92);
  color: #e8f4ff;
  border-radius: 16px;
  padding: 12px;
  font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.debug-panel h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-family: var(--font);
}
.debug-panel .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.debug-panel button {
  font: inherit;
  border: none;
  border-radius: 8px;
  padding: 6px 8px;
  background: #3d5a78;
  color: #fff;
  cursor: pointer;
}
.debug-panel button:hover {
  background: #4da8d8;
}
.debug-panel label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ct-ring,
  .ct-ring::before {
    animation: none !important;
  }
}

/* responsive */
@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .top-actions {
    justify-content: stretch;
  }
  .top-actions .btn {
    flex: 1;
  }
  .step-pill .label-text {
    display: none;
  }
  .energy-ball {
    width: 84px;
    height: 84px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .stage-host {
    min-height: auto;
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .illustration,
  .ct-ring {
    width: min(28vh, 180px);
    height: min(28vh, 180px);
  }
  .hero-title {
    font-size: clamp(1.4rem, 5vh, 2rem);
  }
  .media-shell,
  .result-viewer {
    aspect-ratio: 3 / 4;
    max-height: min(58vh, 420px);
    width: min(100%, 360px);
  }
  .btn {
    min-height: 48px;
    padding: 10px 20px;
  }
}

body.is-page-hidden .ct-ring,
body.is-page-hidden .scan-line-fx,
body.is-page-hidden .result-scanline,
body.is-page-hidden .ambient-stars::before,
body.is-page-hidden .ambient-stars::after {
  animation-play-state: paused !important;
}
