* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: #0a0a0c;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body.cover-open { overflow: hidden; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ===== 页头 ===== */
.site-header { text-align: center; padding: 22vh 5vw 6vh; }
.site-header h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 700; letter-spacing: 2px; }
.site-header .sub { margin-top: 14px; color: rgba(255,255,255,.55); font-size: 15px; letter-spacing: 1px; }

/* ===== 图文区块 ===== */
.block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  max-width: 1100px;
  margin: 16vh auto;
  padding: 0 5vw;
}
.block .media,
.block .text {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.block.in-view .media,
.block.in-view .text { opacity: 1; transform: none; }
.block .media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.block .media .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.18);
  color: rgba(255,255,255,.4);
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
}
.block .text {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.85;
  color: rgba(255,255,255,.92);
  white-space: pre-wrap;
}
.block .text .idx {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .block { grid-template-columns: 1fr; gap: 28px; margin: 12vh auto; }
  .block .media { order: -1; }
}

/* ===== 悬浮歌词卡片 ===== */
#lyrics-stage {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: min(440px, 84vw);
  height: 180px;
  z-index: 20;
  pointer-events: none;
  padding: 12px 22px;
  background: rgba(18,18,22,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0,0,0,.5);
  overflow: hidden;
}
#lyrics-stage:empty { display: none; }
#lyrics-stage .amll-lyric-player {
  width: 100%;
  height: 100%;
  font-size: 22px;
  pointer-events: auto;
}

/* ===== 播放控制条 ===== */
#controls {
  position: fixed;
  left: 24px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(20,20,24,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
#playBtn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: #fff; color: #111; font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s ease;
}
#playBtn:active { transform: scale(.92); }
#progress { width: 240px; accent-color: #fff; cursor: pointer; }
#time { font-variant-numeric: tabular-nums; font-size: 13px; color: rgba(255,255,255,.78); min-width: 92px; text-align: center; }
#controls.playing #progress,
#controls.playing #time { display: none; }

/* ===== 状态提示 ===== */
#status {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 40; font-size: 14px; color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.6); padding: 14px 22px; border-radius: 12px; display: none;
  max-width: 82vw; text-align: center; line-height: 1.7;
}
#status.show { display: block; }

/* ===== 结尾入口 / 粒子蛋糕 / 信 ===== */
.site-letter {
  max-width: 1100px;
  margin: 18vh auto 16vh;
  padding: 0 5vw;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.site-letter.in-view { opacity: 1; transform: none; }
.ending-sentinel {
  min-height: 34vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ending-sentinel .letter-divider { width: 100%; margin: 0; }
.letter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10vh;
}
.letter-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.letter-divider-text {
  font-size: 11px;
  letter-spacing: 6px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
}

/* 整屏结尾场景 */
html.cake-overlay-open,
body.cake-overlay-open { overflow: hidden; height: 100%; }
.cake-overlay[hidden] { display: none !important; }
.cake-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  background: #03040a;
  opacity: 0;
  transition: opacity .9s ease;
  perspective: 1400px;
}
.cake-overlay.is-open { opacity: 1; }
.cake-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cake-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.cake-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(10,10,14,.55);
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: 1px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .45s ease, visibility .45s ease;
}
.cake-overlay.is-ready .cake-loading,
.cake-overlay.is-fallback .cake-loading {
  opacity: 0;
  visibility: hidden;
}
.cake-prompt {
  position: absolute;
  left: 50%;
  bottom: max(4.5vh, 26px);
  transform: translate(-50%, 12px);
  z-index: 4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 10px;
  border: 1px solid rgba(251,247,239,.14);
  border-radius: 999px;
  background: rgba(8,8,11,.46);
  color: rgba(251,247,239,.9);
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  font-size: 14px;
  letter-spacing: 2px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}
.cake-overlay.is-ready .cake-prompt {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cake-overlay.is-letter-open .cake-prompt {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
}
.cake-prompt-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(251,247,239,.18);
  background: rgba(251,247,239,.045);
  color: #f3e4c8;
}
.cake-prompt-icon svg { width: 17px; height: 17px; }

/* 从蛋糕上升起并展开的信 */
.ending-letter {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 5;
  width: min(680px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -30%) scale(.62) rotateX(-38deg);
  transform-origin: 50% 100%;
  transition: transform 1.35s cubic-bezier(.16,.84,.25,1), opacity .95s ease, visibility .95s ease;
}
.cake-overlay.is-letter-open .ending-letter {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1) rotateX(0);
}
.ending-paper {
  width: 100%;
  max-height: min(72vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: 38px 42px 36px;
  border-radius: 16px;
  border: 1px solid rgba(167,124,63,.25);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.9), transparent 55%),
    #f7eedf;
  color: #382820;
  box-shadow: 0 40px 100px rgba(0,0,0,.65);
  text-align: left;
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s cubic-bezier(.2,.8,.2,1) .25s;
  scrollbar-width: thin;
}
.ending-paper::-webkit-scrollbar { width: 6px; }
.ending-paper::-webkit-scrollbar-thumb { background: rgba(56,40,32,.18); border-radius: 999px; }
.cake-overlay.is-letter-open .ending-paper { clip-path: inset(0 0 0 0); }
.ending-paper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.ending-seal {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #9f3b42;
  color: #fbebd5;
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(110,31,38,.28), inset 0 0 0 2px rgba(255,244,223,.18);
  transform: rotate(-6deg);
}
.ending-kicker {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(56,40,32,.42);
  text-transform: uppercase;
}
.ending-title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 2px;
  color: #382820;
}
.ending-body {
  font-size: 15px;
  line-height: 2.1;
  color: #5b4b3f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ending-hint {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(251,247,239,.5);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.7;
}

/* ===== 开屏 / 加载 / 授权 / 手势 ===== */
#cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(42, 40, 50, .92), rgba(9, 9, 11, .99) 64%),
    radial-gradient(circle at 50% 100%, rgba(34, 30, 26, .35), transparent 55%),
    #070708;
  transition: opacity .9s ease, filter .9s ease;
}
#cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 38%, rgba(0,0,0,.34) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light;
}
#cover::after {
  content: "";
  position: absolute;
  width: min(560px, 86vw);
  height: min(560px, 86vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 226, 191, .07), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
  animation: cover-breath 9s ease-in-out infinite;
}
@keyframes cover-breath {
  0%, 100% { transform: scale(.92); opacity: .55; }
  50% { transform: scale(1.06); opacity: .95; }
}
#cover[data-state="entering"]::after {
  animation: enter-glow .9s ease-out both;
}
@keyframes enter-glow {
  0% { opacity: .9; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1.7); }
}
#cover.hide { opacity: 0; filter: blur(10px); pointer-events: none; }

#loader,
.cover-card,
.cover-status {
  grid-area: 1 / 1;
  z-index: 2;
}

/* 加载进度 */
#loader {
  width: min(320px, 76vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity .55s ease, visibility .55s ease, transform .55s ease;
}
#cover:not([data-state="loading"]) #loader {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}
.loader-label { font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,.5); }
.loader-track {
  width: 100%; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.12); overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,.65), #fff);
  border-radius: 999px;
  transition: width .3s ease;
}
.loader-pct { font-size: 13px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.loader-status {
  font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: 1px;
  min-height: 1.2em; text-align: center; line-height: 1.8;
}

/* 卡片通用 */
.cover-card {
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 40px 34px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.85), transparent 55%),
    #fbf7ef;
  color: #2a2620;
  box-shadow: 0 34px 90px rgba(0,0,0,.66), 0 1px 0 rgba(255,255,255,.6) inset;
  text-align: center;
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.988);
  transition: opacity .6s ease, transform .6s ease, visibility .6s ease;
  pointer-events: none;
  scrollbar-width: thin;
}
.cover-card::-webkit-scrollbar { width: 6px; }
.cover-card::-webkit-scrollbar-thumb { background: rgba(42,38,32,.18); border-radius: 999px; }
#cover[data-state="permission"] #permissionCard,
#cover[data-state="gate"] #gateCard,
#cover[data-state="error"] #errorCard {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.card-kicker {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(42,38,32,.42);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.letter-title {
  font-size: 26px;
  margin-bottom: 18px;
  letter-spacing: 2px;
  font-weight: 600;
  line-height: 1.45;
}
.letter-body {
  font-size: 15px;
  line-height: 2;
  color: #4a443c;
  margin: 0 0 10px;
  white-space: pre-line;
}
.cover-line:last-of-type { margin-bottom: 0; }

.consent {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(42,38,32,.12);
}
.consent-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6f665a;
  background: rgba(42,38,32,.055);
  border: 1px solid rgba(42,38,32,.08);
}
.consent-icon svg { width: 22px; height: 22px; }
.consent-title {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.consent-body {
  font-size: 14px;
  line-height: 1.9;
  color: #5b544b;
  white-space: pre-line;
}
#allowCameraBtn,
#retryBtn {
  margin-top: 22px;
  padding: 12px 34px;
  border: none;
  border-radius: 999px;
  background: #2a2620;
  color: #fbf7ef;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  transition: transform .15s ease, opacity .2s ease;
}
#allowCameraBtn:hover,
#retryBtn:hover { opacity: .88; }
#allowCameraBtn:active,
#retryBtn:active { transform: scale(.96); }
#allowCameraBtn:disabled { opacity: .5; cursor: wait; }
.card-foot {
  margin-top: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(42,38,32,.42);
  line-height: 1.8;
}
.card-error {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(143, 54, 40, .08);
  color: #8f3628;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

/* 手势门禁卡片 */
.gate-card {
  width: min(440px, calc(100vw - 40px));
  padding: 38px 34px 34px;
}
.palm-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 2px auto 24px;
  display: grid;
  place-items: center;
  color: #2a2620;
}
.palm-halo {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,38,32,.14), transparent 68%);
  animation: palm-halo 2.8s ease-in-out infinite;
}
.palm-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(42,38,32,.16);
}
.palm-ring::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px dashed rgba(42,38,32,.13);
  animation: palm-spin 24s linear infinite;
}
.palm-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  animation: palm-breathe 2.8s ease-in-out infinite;
}
@keyframes palm-halo {
  0%, 100% { transform: scale(.88); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes palm-spin { to { transform: rotate(360deg); } }
@keyframes palm-breathe {
  0%, 100% { transform: translateY(2px) scale(.98); opacity: .82; }
  50% { transform: translateY(-2px) scale(1.02); opacity: 1; }
}
.gate-title {
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.gate-sub {
  margin-top: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 13px;
  letter-spacing: .8px;
  color: rgba(42,38,32,.5);
  line-height: 1.8;
}

/* 请求中 / 准备中 */
.cover-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(18,18,22,.68);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.68);
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#cover[data-state="requesting"] .cover-status {
  opacity: 1;
  visibility: visible;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  border-top-color: rgba(255,255,255,.8);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 错误卡片 */
.error-card { width: min(440px, calc(100vw - 40px)); }
.error-title { font-size: 22px; letter-spacing: 1.5px; margin-bottom: 12px; }
.error-body { font-size: 14px; line-height: 1.9; color: #5b544b; white-space: pre-line; }

/* 隐藏的摄像头输入：不参与视觉 */
.camera-sink {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  opacity: 0.001;
  pointer-events: none;
  z-index: 0;
  border: 0;
}
.camera-sink.is-off { display: none; }

.noscript {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #0a0a0c; color: #fbf7ef; padding: 24px; text-align: center;
}

/* ===== 移动端 ===== */
@media (max-width: 600px) {
  .site-header { padding: 14vh 6vw 5vh; }
  .site-header .sub { font-size: 13px; padding: 0 4vw; }

  .block { margin: 10vh auto; gap: 22px; }

  #controls {
    left: 12px; right: 12px; bottom: 14px;
    width: auto; max-width: none;
    padding: 10px 14px; gap: 10px;
  }
  #progress { width: auto; flex: 1 1 auto; min-width: 0; }
  #time { min-width: auto; font-size: 12px; }
  #controls.playing #time { display: none; }

  #lyrics-stage {
    top: auto; bottom: 90px; left: 12px; right: 12px;
    transform: none; width: auto; height: 120px;
    padding: 10px 16px;
  }
  #lyrics-stage .amll-lyric-player { font-size: 15px; }

  .ending-sentinel { min-height: 30vh; }
  .cake-prompt {
    bottom: calc(3.5vh + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
    padding: 8px 14px 8px 8px;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: left;
  }
  .cake-prompt-icon { width: 26px; height: 26px; }
  .cake-prompt-icon svg { width: 15px; height: 15px; }
  .ending-letter {
    width: calc(100vw - 24px);
    top: 50%;
  }
  .ending-paper {
    max-height: 70vh;
    padding: 28px 22px 26px;
    border-radius: 13px;
  }
  .ending-paper-head { margin-bottom: 16px; }
  .ending-seal { width: 44px; height: 44px; font-size: 19px; }
  .ending-kicker { font-size: 9px; letter-spacing: 3px; }
  .ending-title { font-size: 20px; margin-bottom: 14px; }
  .ending-body { font-size: 14px; line-height: 1.95; }
  .ending-hint { margin-top: 10px; font-size: 10px; letter-spacing: 1.5px; }

  #cover { padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); }
  .cover-card {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 26px 22px 24px;
    border-radius: 13px;
  }
  .card-kicker { margin-bottom: 12px; letter-spacing: 4px; }
  .letter-title { font-size: 21px; margin-bottom: 12px; }
  .letter-body { font-size: 14px; line-height: 1.85; margin-bottom: 8px; }
  .consent { margin-top: 18px; padding-top: 18px; }
  .consent-title { font-size: 17px; }
  .consent-body { font-size: 13px; line-height: 1.8; }
  #allowCameraBtn, #retryBtn { margin-top: 18px; padding: 11px 28px; font-size: 13px; }
  .card-foot { margin-top: 13px; font-size: 10px; }
  .gate-card { width: calc(100vw - 24px); padding: 28px 22px 30px; }
  .palm-wrap { width: 92px; height: 92px; margin-bottom: 18px; }
  .palm-icon { width: 46px; height: 46px; }
  .gate-title { font-size: 19px; line-height: 1.6; }
  .gate-sub { margin-top: 10px; font-size: 12px; }
}

@media (max-height: 620px) {
  .cover-card { padding-top: 24px; padding-bottom: 22px; }
  .palm-wrap { width: 76px; height: 76px; margin-bottom: 12px; }
  .palm-icon { width: 38px; height: 38px; }
  .letter-title { font-size: 20px; }
  .gate-title { font-size: 18px; }
}

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