@import url("https://cdn.jsdelivr.net/npm/pretendard/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  --brand-green: #1A5620;
  --brand-green-bright: #44D462;
  --brand-green-mid: #27AE60;
  --brand-green-dark: #0F3A14;
  --brand-yellow: #F5C200;
  --brand-yellow-soft: #FFF0A0;
  --brand-mint: #0EC691;
  --brand-teal: #007F5B;
  --brand-amber: #F4A33C;
  --ink: #18211b;
  --ink-soft: #5f6b63;
  --line: #dce6dd;
  --panel: #ffffff;
  --surface: #f6f9f4;
  --surface-strong: #edf5ed;
  --shadow: 0 18px 52px rgba(24, 33, 27, 0.14);
  --font-ko: Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-en: Outfit, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbfdf8 0%, var(--surface) 58%, #eef6f0 100%);
  color: var(--ink);
  font-family: var(--font-ko);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.pose-dot-demo {
  width: 100%;
  display: grid;
  place-items: center;
}

.app-screen {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  height: 100dvh;
  max-height: 920px;
  min-height: 640px;
  --message-pane-height: 200px;
  --guide-pane-height: 200px;
  display: grid;
  grid-template-rows: var(--message-pane-height) minmax(0, 1fr) var(--guide-pane-height);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
}

.top-bar {
  position: absolute;
  z-index: 12;
  top: max(12px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-green);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 58, 20, 0.12);
  backdrop-filter: blur(14px);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button rect {
  fill: currentColor;
  stroke: none;
}

.brand-mark {
  justify-self: center;
  min-width: 0;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-green-dark);
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(15, 58, 20, 0.1);
  backdrop-filter: blur(14px);
}

.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.preflight-screen {
  position: absolute;
  z-index: 11;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 18px;
  padding: calc(max(12px, env(safe-area-inset-top)) + 78px) 18px max(22px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbf6 55%, #edf5ed 100%);
}

.pose-dot-demo:not([data-phase="intro"]) .preflight-screen {
  display: none;
}

.preflight-copy {
  align-self: center;
  display: grid;
  gap: 11px;
}

.preflight-copy span {
  color: var(--brand-green);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.preflight-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 7.2vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
  word-break: keep-all;
}

.preflight-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.48;
  font-weight: 600;
  word-break: keep-all;
}

.preflight-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preflight-list li {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(26, 86, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.preflight-list li span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(14, 198, 145, 0.16);
  box-shadow: inset 0 0 0 6px var(--brand-mint);
}

.preflight-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.32;
  font-weight: 700;
  word-break: keep-all;
}

.message-pane {
  position: relative;
  z-index: 7;
  height: var(--message-pane-height);
  display: grid;
  grid-template-rows: 18px 64px 42px;
  align-content: start;
  gap: 7px;
  padding: calc(max(12px, env(safe-area-inset-top)) + 48px) 18px 10px;
  border-bottom: 1px solid rgba(26, 86, 32, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf6 100%);
}

.message-pane > span {
  min-height: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.camera-pane {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d9e4dd;
}

.camera-pane video,
.preview-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.camera-pane video {
  z-index: 1;
  object-fit: cover;
  transform: scaleX(-1);
  background: #d9e4dd;
}

.preview-fallback {
  z-index: 0;
  background:
    linear-gradient(155deg, rgba(26, 86, 32, 0.08), transparent 42%),
    linear-gradient(26deg, rgba(245, 194, 0, 0.14), transparent 48%),
    linear-gradient(180deg, #f7faf3, #dbe7df);
}

.face-window {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: min(58%, 226px);
  aspect-ratio: 0.82;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 46% 46% 42% 42%;
  box-shadow:
    0 0 0 999px rgba(24, 33, 27, 0.18),
    0 0 0 8px rgba(26, 86, 32, 0.12);
  pointer-events: none;
}

.face-alert {
  position: absolute;
  z-index: 9;
  left: 16px;
  right: 16px;
  top: 12px;
  min-height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-green-dark);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 58, 20, 0.14);
  backdrop-filter: blur(16px);
}

.face-alert[hidden] {
  display: none;
}

.camera-vignette {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 58, 20, 0.25), transparent 26%, transparent 74%, rgba(15, 58, 20, 0.18)),
    linear-gradient(90deg, rgba(24, 33, 27, 0.08), transparent 18%, transparent 82%, rgba(24, 33, 27, 0.08));
}

.loading-layer {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: none;
  place-items: center;
  gap: 12px;
  background: rgba(246, 249, 244, 0.78);
  color: var(--brand-green-dark);
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.loading-layer.is-visible {
  display: grid;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(26, 86, 32, 0.18);
  border-top-color: var(--brand-green);
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

.guide-pane {
  position: relative;
  z-index: 8;
  height: var(--guide-pane-height);
  display: grid;
  grid-template-rows: 5px 24px 54px 54px;
  align-content: start;
  gap: 10px;
  padding: 13px 18px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(26, 86, 32, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf6 100%);
  box-shadow: 0 -14px 36px rgba(24, 33, 27, 0.08);
}

.progress-line {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee7;
}

.progress-line span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-mint) 62%, var(--brand-yellow));
  transition: width 180ms ease;
}

.step-row {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.status-values {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-values strong {
  min-width: 44px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(245, 194, 0, 0.2);
  color: var(--brand-green);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
}

#instructionTitle {
  height: 64px;
  margin: 0;
  color: var(--ink);
  overflow: hidden;
  font-size: clamp(23px, 5.8vw, 27px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
  word-break: keep-all;
}

#instructionHint {
  height: 42px;
  margin: -4px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  word-break: keep-all;
}

.pose-board {
  position: absolute;
  z-index: 6;
  left: 20px;
  right: 20px;
  top: 12px;
  bottom: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
}

.board-grid {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 25% 25%;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 58%, transparent 84%);
}

.axis {
  position: absolute;
  opacity: 0;
  background: rgba(255, 255, 255, 0.24);
}

.axis-x {
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
}

.axis-y {
  top: 14%;
  bottom: 14%;
  left: 50%;
  width: 1px;
}

.center-zone {
  position: absolute;
  left: var(--center-zone-left, 40%);
  top: var(--center-zone-top, 37%);
  width: calc(var(--center-zone-right, 60%) - var(--center-zone-left, 40%));
  height: calc(var(--center-zone-bottom, 63%) - var(--center-zone-top, 37%));
  opacity: 0;
  visibility: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(1px);
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.center-zone span {
  display: none;
}

.turn-guide {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.turn-guide-side {
  opacity: 0;
  transition: opacity 160ms ease;
}

.turn-guide-rail,
.turn-guide-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 12px rgba(15, 58, 20, 0.2));
}

.turn-guide-rail {
  stroke: rgba(68, 212, 98, 0.26);
  stroke-width: 2.1;
}

.turn-guide-flow {
  stroke: rgba(68, 212, 98, 0.92);
  stroke-width: 2.7;
  stroke-dasharray: 10 90;
  animation: turnGuideFlow 1150ms linear infinite;
}

.turn-guide-runner {
  filter: drop-shadow(0 5px 12px rgba(15, 58, 20, 0.22));
}

.turn-guide-chevron {
  fill: none;
  stroke: var(--brand-green-bright);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pose-board[data-target="left"] .turn-guide,
.pose-board[data-target="right"] .turn-guide {
  opacity: 1;
}

.pose-board[data-target="left"] .turn-guide-left,
.pose-board[data-target="right"] .turn-guide-right {
  opacity: 1;
}

.target-line {
  position: absolute;
  top: 19%;
  bottom: 19%;
  width: 5px;
  border-radius: 999px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 6px 22px rgba(15, 58, 20, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.target-line-left {
  left: var(--left-target-x, 18%);
  transform: translateX(-50%);
}

.target-line-right {
  left: var(--right-target-x, 82%);
  transform: translateX(-50%);
}

.pose-board[data-target="left"] .target-line-left,
.pose-board[data-target="right"] .target-line-right {
  opacity: 1;
  background: var(--brand-green-bright);
  box-shadow:
    0 0 0 7px rgba(68, 212, 98, 0.18),
    0 10px 28px rgba(15, 58, 20, 0.26);
}

.pose-board[data-target="center"] .center-zone {
  opacity: 1;
  visibility: visible;
  border-color: rgba(245, 194, 0, 0.94);
  background: rgba(245, 194, 0, 0.12);
  box-shadow:
    0 0 0 8px rgba(245, 194, 0, 0.14),
    0 0 30px rgba(245, 194, 0, 0.22),
    0 10px 28px rgba(15, 58, 20, 0.13);
}

.pose-board[data-target="center"].is-on-target .center-zone {
  border-color: var(--brand-mint);
  background: rgba(14, 198, 145, 0.15);
  box-shadow:
    0 0 0 8px rgba(14, 198, 145, 0.14),
    0 10px 30px rgba(0, 127, 91, 0.22);
}

.pose-board[data-target="left"].is-on-target .target-line-left,
.pose-board[data-target="right"].is-on-target .target-line-right {
  background: var(--brand-mint);
  box-shadow: 0 0 0 9px rgba(14, 198, 145, 0.12);
}

.pose-dot {
  position: absolute;
  z-index: 7;
  left: var(--dot-x, 50%);
  top: var(--dot-y, 50%);
  width: 24px;
  height: 24px;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 10px 20px rgba(15, 58, 20, 0.18),
    0 0 0 8px rgba(245, 194, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.72);
  transition: box-shadow 160ms ease, opacity 160ms ease;
  will-change: left, top, opacity;
}

.pose-dot span {
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: var(--brand-yellow);
  box-shadow: inset 0 0 0 2px rgba(184, 146, 0, 0.18);
}

.pose-board.is-on-target .pose-dot {
  box-shadow:
    0 10px 20px rgba(0, 127, 91, 0.18),
    0 0 0 8px rgba(14, 198, 145, 0.18);
}

.pose-board.is-on-target .pose-dot span {
  background: var(--brand-mint);
}

.pose-dot-demo:not([data-placement="ok"]) .pose-board[data-target="center"].is-on-target .center-zone {
  border-color: rgba(244, 163, 60, 0.95);
  background: rgba(244, 163, 60, 0.13);
  box-shadow:
    0 0 0 8px rgba(244, 163, 60, 0.14),
    0 10px 30px rgba(111, 61, 0, 0.18);
}

.pose-dot-demo:not([data-placement="ok"]) .pose-board.is-on-target .pose-dot {
  box-shadow:
    0 10px 20px rgba(15, 58, 20, 0.14),
    0 0 0 8px rgba(245, 194, 0, 0.2);
}

.pose-dot-demo:not([data-placement="ok"]) .pose-board.is-on-target .pose-dot span {
  background: var(--brand-yellow);
}

.pose-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pose-metrics div {
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid #dfe9df;
  border-radius: 8px;
  background: #ffffff;
}

.pose-metrics dt {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-en);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.pose-metrics dd {
  margin: 0;
  overflow: hidden;
  color: var(--brand-green-dark);
  font-family: var(--font-en);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions {
  display: grid;
  align-self: end;
  min-height: 54px;
  padding-top: 2px;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-green);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(26, 86, 32, 0.2);
}

.primary-button:disabled {
  cursor: wait;
  background: #9aab9b;
  box-shadow: none;
}

.result-sheet {
  position: absolute;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(26, 86, 32, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.result-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 198, 145, 0.14);
  color: var(--brand-teal);
}

.result-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-sheet h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.result-sheet p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  word-break: keep-all;
}

.pose-dot-demo[data-phase="running"] #startButton,
.pose-dot-demo[data-phase="preview"] #startButton,
.pose-dot-demo[data-phase="complete"] #startButton,
.pose-dot-demo[data-phase="failed"] #startButton {
  display: none;
}

.pose-dot-demo[data-phase="idle"] #retryButton,
.pose-dot-demo[data-phase="running"] #retryButton,
.pose-dot-demo[data-phase="preview"] #retryButton {
  display: none;
}

.pose-dot-demo[data-phase="running"] #stopButton,
.pose-dot-demo[data-phase="preview"] #stopButton {
  display: grid;
}

.pose-dot-demo[data-tracking="lost"] .face-window {
  border-color: rgba(244, 163, 60, 0.88);
  box-shadow:
    0 0 0 999px rgba(24, 33, 27, 0.2),
    0 0 0 8px rgba(244, 163, 60, 0.16);
}

.pose-dot-demo[data-placement="ok"] .face-alert {
  display: none;
}

.pose-dot-demo:not([data-placement="ok"]) .face-alert {
  display: flex;
}

.pose-dot-demo[data-placement="lost"] .face-window,
.pose-dot-demo[data-placement="off-center"] .face-window {
  border-color: rgba(244, 163, 60, 0.92);
  box-shadow:
    0 0 0 999px rgba(24, 33, 27, 0.18),
    0 0 0 8px rgba(244, 163, 60, 0.18),
    0 0 36px rgba(244, 163, 60, 0.36);
}

.pose-dot-demo[data-placement="far"] .face-window {
  border-color: rgba(245, 194, 0, 0.96);
  box-shadow:
    0 0 0 999px rgba(24, 33, 27, 0.16),
    0 0 0 8px rgba(245, 194, 0, 0.18),
    0 0 38px rgba(245, 194, 0, 0.42);
}

.pose-dot-demo[data-placement="near"] .face-window {
  border-color: rgba(14, 198, 145, 0.96);
  box-shadow:
    0 0 0 999px rgba(24, 33, 27, 0.16),
    0 0 0 8px rgba(14, 198, 145, 0.18),
    0 0 38px rgba(14, 198, 145, 0.42);
}

.pose-dot-demo[data-placement="lost"] .face-alert,
.pose-dot-demo[data-placement="off-center"] .face-alert {
  color: #6f3d00;
  border-color: rgba(244, 163, 60, 0.46);
  background: rgba(255, 246, 232, 0.9);
}

.pose-dot-demo[data-placement="far"] .face-alert {
  color: #6d5500;
  border-color: rgba(245, 194, 0, 0.46);
  background: rgba(255, 249, 220, 0.92);
}

.pose-dot-demo[data-placement="near"] .face-alert {
  color: #005f46;
  border-color: rgba(14, 198, 145, 0.42);
  background: rgba(232, 255, 247, 0.92);
}

.pose-dot-demo:not([data-placement="ok"]) .pose-dot {
  opacity: 0.42;
}

.pose-dot-demo:not([data-placement="ok"]) .target-line {
  opacity: 0;
}

.pose-dot-demo:not([data-placement="ok"]) .turn-guide {
  opacity: 0;
}

@keyframes turnGuideFlow {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 480px) {
  body {
    padding: 20px;
  }

  .app-screen {
    border: 1px solid rgba(26, 86, 32, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
}

@media (max-height: 700px) {
  .app-screen {
    min-height: 100dvh;
    --message-pane-height: 180px;
    --guide-pane-height: 187px;
  }

  .message-pane {
    gap: 5px;
    grid-template-rows: 18px 56px 38px;
    padding-top: calc(max(10px, env(safe-area-inset-top)) + 44px);
    padding-bottom: 10px;
  }

  .preflight-screen {
    gap: 14px;
    padding: calc(max(10px, env(safe-area-inset-top)) + 68px) 18px max(18px, env(safe-area-inset-bottom));
  }

  .preflight-copy {
    gap: 9px;
  }

  .preflight-copy h1 {
    font-size: 27px;
  }

  .preflight-copy p {
    font-size: 14px;
  }

  .preflight-list {
    gap: 7px;
  }

  .preflight-list li {
    min-height: 40px;
    padding: 9px 11px;
  }

  .face-window {
    top: 50%;
    width: min(48%, 176px);
  }

  .guide-pane {
    grid-template-rows: 5px 24px 54px 48px;
    gap: 8px;
    padding-top: 11px;
  }

  #instructionTitle {
    height: 56px;
    font-size: 22px;
  }

  #instructionHint {
    height: 38px;
    font-size: 14px;
  }

  .actions {
    min-height: 48px;
  }

  .primary-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
