@font-face {
  font-family: 'CustomEmoji';
  src: url('../emoji.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: block;
  /* 기본 ASCII(숫자·알파벳·구두점 등)는 Pretendard를 사용하도록 제외 */
  unicode-range:
    U+00A9, U+00AE,
    U+203C, U+2049, U+20E3, U+2122, U+2139,
    U+2194-U+2199, U+21A9-U+21AA,
    U+231A-U+231B, U+2328, U+23CF, U+23E9-U+23F3, U+23F8-U+23FA,
    U+24C2, U+25AA-U+25AB, U+25B6, U+25C0, U+25FB-U+25FE,
    U+2600-U+27BF,
    U+2934-U+2935, U+2B05-U+2B07, U+2B1B-U+2B1C, U+2B50, U+2B55,
    U+3030, U+303D, U+3297, U+3299,
    U+200D, U+20D0-U+20FF,
    U+FE00-U+FE0F,
    U+1F000-U+1FFFF,
    U+E0020-U+E007F;
}

* {
  box-sizing: border-box;
}
:root {
  /* iOS 시스템 색에 가깝게 (HIG 느낌) */
  --ig-bg: #f2f2f7;
  --ig-surface: #ffffff;
  --ig-elevated: #e5e5ea;
  --ig-border: rgba(60, 60, 67, 0.18);
  --ig-separator: rgba(60, 60, 67, 0.29);
  --ig-text: #000000;
  --ig-muted: #8e8e93;
  --ig-blue: #007aff;
  --ig-blue-press: #0062d6;
  --ig-track: #e5e5ea;
  --ig-fill: rgba(120, 120, 128, 0.12);
  --ig-shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.04);
  --ig-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI",
    "Pretendard", sans-serif;
}

html {
  touch-action: manipulation;
  color-scheme: light;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ig-bg);
  color: var(--ig-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
  letter-spacing: -0.01em;
}
.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}
.app--pick .step--pick {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.step-pick-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px 32px;
}
.step-pick-lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--ig-text);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.35;
  letter-spacing: -0.022em;
}
.panel.panel--step-pick {
  border-radius: 12px;
  border: none;
  margin-bottom: 0;
  background: var(--ig-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 16px 16px 14px;
}
.app--edit .step--edit {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.step-pick-continue {
  margin-top: 20px;
  width: 100%;
}
.preview-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 8px;
  min-height: 44px;
}
.preview-toolbar .section-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--ig-text);
  letter-spacing: -0.041em;
  text-align: left;
  line-height: 22px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.section-label--inline {
  margin: 0;
}
.preview-toolbar__link {
  border: 0;
  background: none;
  color: var(--ig-blue);
  font-size: 17px;
  font-weight: 400;
  font-family: var(--font);
  cursor: pointer;
  padding: 0 0 0 8px;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  -webkit-appearance: none;
  appearance: none;
}
.preview-toolbar__link:active {
  opacity: 0.45;
}
.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 10px;
  border-bottom: 0.5px solid var(--ig-separator);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.ig-header__lead,
.ig-header__trail {
  width: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-header__title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.041em;
  text-align: center;
}
.ig-header__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ig-blue);
  font-size: 28px;
  line-height: 1;
  cursor: default;
  display: grid;
  place-items: center;
  padding: 0;
}
.ig-header__btn--back {
  cursor: pointer;
  margin-left: -4px;
}
.ig-header__btn--back:active {
  opacity: 0.35;
}
.ig-header__btn--dots {
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--ig-muted);
  pointer-events: none;
}
.panel {
  background: transparent;
  border-radius: 0;
  padding: 16px 16px 4px;
  margin: 0;
  border-bottom: none;
}
.panel--preview {
  padding-top: 12px;
  padding-bottom: 12px;
  background: transparent;
}
.panel--actions {
  border-bottom: 0;
  padding-top: 8px;
  padding-bottom: 20px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ig-muted);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.row:last-child {
  margin-bottom: 0;
}
label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ig-muted);
  letter-spacing: -0.01em;
}

/* 폼: 패널 안만 전체 너비 (작성 바는 제외 → 글자 입력 깨짐 방지) */
.panel .row input[type="text"],
.panel .row input[type="color"],
.panel .row input[type="range"],
.text-look-rail input[type="range"],
.panel .row select,
.panel .row button,
.panel .buttons button,
.panel input[type="file"] {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 17px;
  font-family: var(--font);
}
.panel .row input[type="text"],
.panel .row select {
  background: var(--ig-fill);
  color: var(--ig-text);
  border: none;
}
.panel .row input[type="text"]::placeholder {
  color: var(--ig-muted);
}
.panel .row input[type="color"] {
  height: 44px;
  padding: 4px;
  cursor: pointer;
  background: var(--ig-fill);
  border: none;
}
.panel input[type="file"] {
  font-size: 15px;
  font-family: var(--font);
  color: var(--ig-muted);
}
.panel input[type="file"]::file-selector-button {
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  margin-right: 12px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ig-blue);
  color: #fff;
  cursor: pointer;
}
.panel .row input[type="range"],
.text-look-rail input[type="range"] {
  padding: 0;
  height: 28px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.panel .row input[type="range"]::-webkit-slider-runnable-track,
.text-look-rail input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--ig-track);
}
.panel .row input[type="range"]::-webkit-slider-thumb,
.text-look-rail input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 0.5px 4px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.12);
}
.panel .row input[type="range"]::-moz-range-track,
.text-look-rail input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--ig-track);
}
.panel .row input[type="range"]::-moz-range-thumb,
.text-look-rail input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0.5px 4px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.12);
}

.text-look-rail input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--ig-track);
  box-shadow: none;
}
.text-look-rail input[type="range"]::-webkit-slider-thumb {
  margin-top: -11px;
}
.text-look-rail input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--ig-track);
  box-shadow: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.12s ease, opacity 0.12s ease, transform 0.12s ease;
}
.btn--primary {
  background: var(--ig-blue);
  color: #fff;
  border: 0;
  box-shadow: none;
}
.btn--primary:active {
  background: var(--ig-blue-press);
  opacity: 0.88;
}
.btn--secondary {
  background: var(--ig-elevated);
  color: var(--ig-blue);
  border: none;
  font-weight: 600;
}
.btn--secondary:active {
  background: #d1d1d6;
  opacity: 0.92;
}
.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel--actions .buttons {
  grid-template-columns: 1fr;
}
#shareBtn {
  width: 100%;
  gap: 10px;
}
#shareBtn .fa-brands {
  font-size: 22px;
  line-height: 1;
}

.preview-wrap {
  display: flex;
  justify-content: center;
}
.story-frame {
  position: relative;
  width: min(88vw, 340px);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.1);
  touch-action: none;
  user-select: none;
}
.story-chrome {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  padding: 10px 12px 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
}
.story-chrome__progress {
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  margin-bottom: 10px;
}
.story-chrome__progress-fill {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 1px;
  background: #fff;
}
.story-chrome__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.story-chrome__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.story-chrome__name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-chrome__time {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}
.story-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
  display: none;
  pointer-events: none;
}
.story-photo-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  touch-action: none;
  cursor: grab;
}
.story-photo-layer:active {
  cursor: grabbing;
}
.story-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8e8e93;
  background: linear-gradient(180deg, #f2f2f7 0%, #e5e5ea 100%);
  text-align: center;
  padding: 28px 20px;
  font-size: 15px;
  line-height: 1.47;
  font-weight: 400;
}
.text-stickers-mount {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.text-stickers-mount .text-overlay {
  pointer-events: auto;
}
.text-overlay {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  min-width: 48px;
  max-width: none;
  width: max-content;
  max-height: none;
  padding: 10px 14px;
  border-radius: 16px;
  background: #000000;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  white-space: pre;
  overflow: visible;
  text-shadow: none;
  cursor: grab;
  touch-action: none;
  will-change: transform;
}
.story-fab {
  position: absolute;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font);
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.22);
  touch-action: manipulation;
  transition: transform 0.1s ease, opacity 0.12s ease;
}
.story-fab:active {
  transform: scale(0.94);
  opacity: 0.9;
}
.story-fab--textadd {
  right: 10px;
  top: 64px;
  background: rgba(28, 28, 30, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.story-fab--download {
  right: 10px;
  top: 118px;
  background: rgba(28, 28, 30, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.story-fab--download .fa-solid {
  font-size: 18px;
  pointer-events: none;
}
.story-fab--aa {
  left: 10px;
  right: auto;
  bottom: 10px;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}
.story-fab--aa[data-theme='dark'] {
  background: #1c1c1e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.35);
}
.story-fab--aa[data-theme='light'] {
  background: #fff;
  color: #000;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.12);
}
.story-fab--aa[data-theme='bareWhite'] {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
.story-fab--aa[data-theme='bareBlack'] {
  background: rgba(255, 255, 255, 0.98);
  color: #000;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.12);
}
.story-fab--aa .fa-solid {
  font-size: 17px;
}
.story-fab--align {
  left: 58px;
  right: auto;
  bottom: 10px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.94);
  color: #1c1c1e;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.16);
}
.story-fab--align .fa-solid {
  font-size: 18px;
  pointer-events: none;
}

.story-fab--delete {
  left: 106px;
  right: auto;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1c1c1e;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.16);
}
.story-fab--delete .fa-solid {
  font-size: 18px;
  pointer-events: none;
}
.story-fab[hidden] {
  display: none !important;
}

/* 편집 딤 위 · 좌측 끝에 붙인 세로 슬라이더(배경 없음) */
.story-sliders {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  background: none;
  border: none;
  border-radius: 0;
  padding: 8px 0 8px 4px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  pointer-events: auto;
  box-shadow: none;
}
.story-sliders[hidden] {
  display: none !important;
}
.story-slider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 30px;
}
.story-slider-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
.story-slider-vertical {
  position: relative;
  width: 28px;
  height: 120px;
  flex-shrink: 0;
  isolation: isolate;
}
/* 역삼각형 ▽ : 위(큰 값)가 넓고 아래로 갈수록 한 점으로 수렴, 가로는 얇게 */
.story-slider-vertical::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
  clip-path: polygon(28% 0%, 72% 0%, 50% 100%);
}
/* 가로 range를 -90° 회전해 세로 게이지로 표시 (크로스브라우저) */
.story-slider-input--vertical {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 10px;
  margin: 0;
  padding: 0;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background: transparent;
  outline: none;
  cursor: pointer;
}
.story-slider-input--vertical::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 0;
  background: transparent;
}
.story-slider-input--vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.story-slider-input--vertical::-moz-range-track {
  height: 10px;
  border-radius: 0;
  background: transparent;
}
.story-slider-input--vertical::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.text-overlay--editing {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  outline: none;
}

.text-overlay__emoji-glyph {
  /* 이모지가 위로 뜨는 현상을 아래로 보정 */
  display: inline-block;
  transform: translateY(0.14em);
}
.text-look-rail {
  margin-top: 12px;
  padding: 12px 16px 14px;
  background: var(--ig-surface);
  border-radius: 12px;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-look-rail[hidden] {
  display: none !important;
}

/* 배경색: 우측 하단(편집 중에는 숨김) · 탭하면 순환 */
.story-bg-color-fabs {
  position: absolute;
  right: 10px;
  bottom: 10px;
  top: auto;
  z-index: 6;
  pointer-events: none;
}
.story-bg-color-fabs[hidden] {
  display: none !important;
}
.story-bg-color-fabs > .story-fab {
  position: relative !important;
  pointer-events: auto;
  inset: auto !important;
}
.story-fab--bg-swatch {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.1s ease,
    opacity 0.12s ease,
    box-shadow 0.12s ease;
}

.text-look-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-look-row__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ig-muted);
  letter-spacing: -0.01em;
}
.text-look-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.look-chip {
  flex: 1;
  min-width: calc(50% - 4px);
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: var(--ig-fill);
  color: var(--ig-text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.12s ease, opacity 0.12s ease;
}
.look-chip:active {
  opacity: 0.55;
}
.look-chip--active {
  border-color: var(--ig-blue);
  background: rgba(0, 122, 255, 0.12);
  color: var(--ig-blue);
  box-shadow: none;
}
.look-chip--color {
  padding: 10px;
  min-width: 0;
  display: grid;
  place-items: center;
}
.look-chip__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.16);
}
.look-chip__dot--light {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.1);
}
.look-chip--color.look-chip--active {
  background: rgba(0, 122, 255, 0.12);
}
.note {
  font-size: 13px;
  line-height: 1.47;
  color: var(--ig-muted);
  margin: 16px 0 0;
  letter-spacing: -0.01em;
  text-align: center;
}

.story-snap-guides {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.story-snap-guides__v,
.story-snap-guides__h {
  position: absolute;
  opacity: 0;
  transition: opacity 0.07s ease;
}
.story-snap-guides__v--on,
.story-snap-guides__h--on {
  opacity: 1;
}
.story-snap-guides__v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  transform: translateX(-50%);
  border-left: 1px dashed rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}
.story-snap-guides__h {
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  transform: translateY(-50%);
  border-top: 1px dashed rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}
.story-dim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.story-dim--on {
  opacity: 1;
  pointer-events: auto;
}

canvas {
  display: none;
}
