
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { --mist-3: #C1C1C1; }
button, a, input, select, summary { touch-action: manipulation; }
button, .btn, .link, summary { min-height: 44px; }
input:not([type=checkbox]), select, textarea { font-size: 16px; }
input[aria-invalid=true] { border-color: #C6C6C6; }
.language-toggle {
  position: fixed;
  z-index: 90;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: max(10px, calc((100vw - 480px) / 2 + 10px));
  min-width: 46px;
  min-height: 44px;
  border: 1px solid #7C7C7C;
  border-radius: 24px;
  color: #F5F5F5;
  background: #221F1CF0;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 8px;
}
.sound { width: 44px; height: 44px; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
#app { height: 100dvh; }
.top { flex-shrink: 0; min-height: calc(70px + env(safe-area-inset-top, 0px)); }
.top-logo { max-width: 120px; }
.screen { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); scroll-padding-block: 20px 100px; }
.warn { min-height: 36px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); line-height: 1.5; }
.q-en, .opt-label small, .say small, .quote-en, .vn-lead-en, .vd-en { display: none; }
.q-hint { font-size: 13px; line-height: 1.6; }
.q-title { white-space: pre-line; }
.q-nudge { display: block; visibility: inherit; opacity: 1; font-size: 12px; color: #C1C1C1; }
.timer { display: none; }
.stage, .opt { touch-action: pan-y; }
.pilot { touch-action: none; }
.opt-label { pointer-events: none; }
.opt-label b { font-size: 15px; line-height: 1.5; }
.multi-bar { position: sticky; bottom: 0; z-index: 4; background: #221F1CF5; padding-block: 12px; }
.multi-go, #multi-go { min-height: 52px; }
.say { min-height: 76px; }
.say b { line-height: 1.6; }
.phone-row { grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.1fr); }
.phone-row > * { min-width: 0; width: 100%; }
.line-oa { flex-wrap: wrap; }
.line-oa > div { min-width: 0; flex: 1 1 190px; }
.line-oa .btn { flex: 1 0 auto; }
.line-oa.cta > div, .line-oa.cta .btn { flex: 0 0 auto; }
.btn.line, .line-bind { color: #05240F; }
.x, .vd-x, .intro-skip { min-width: 44px; min-height: 44px; }
.sheet, .vd { overscroll-behavior: contain; }
.sheet-panel { max-height: calc(100dvh - 32px); }
.sheet-head, .vd-x { z-index: 5; }
.sheet-body { overscroll-behavior: contain; }
.vd-facts div { grid-template-columns: minmax(80px, 1fr) minmax(0, 3fr); }
.vd-facts dd, .facts dd { overflow-wrap: anywhere; word-break: normal; }
#reg-back, #q-back { margin-block: 8px; align-self: flex-start; }
.err { scroll-margin-block: 90px; }
html[lang=en] { --f-zh: "Optima", Georgia, serif; }
html[lang=en] .btn, html[lang=en] .link { letter-spacing: 0.02em; text-indent: 0; white-space: normal; line-height: 1.35; padding-block: 12px; }
html[lang=en] .eyebrow { letter-spacing: 0.1em; }
html[lang=en] .q-title { font-size: clamp(23px, 6vw, 29px); line-height: 1.25; white-space: normal; }
html[lang=en] .persona { font-family: var(--f-latin); font-size: clamp(30px, 8vw, 42px); letter-spacing: 0; line-height: 1.1; }
html[lang=en] .persona-en { display: none; }
html[lang=en] .opt-label b { font-size: 15px; line-height: 1.35; white-space: normal; }
html[lang=en] .say b { font-size: 15px; line-height: 1.45; }
html[lang=en] .quest { gap: 4px; }
html[lang=en] .quest li { font-size: 10px; line-height: 1.3; }
html[lang=en] .reg-title, html[lang=en] .done-title, html[lang=en] .friend-title, html[lang=en] .vn-title { letter-spacing: 0; line-height: 1.25; }
html[lang=en] .warn { font-size: 10px; }
html[lang=en] .greet-text span { font-size: 12px; }
html[lang=en] .facts div { grid-template-columns: 5.5em minmax(0, 1fr); }
html[lang=en] .v-code { font-family: monospace; letter-spacing: 0.02em; }
@media (max-width: 360px) {
  #app { --gutter: 14px; }
  .opt { aspect-ratio: 1 / 1.05; }
  .cta-row { flex-wrap: wrap; }
  .cta-row > * { flex: 1 1 125px; }
  .reg-title { font-size: 24px; }
  .copy-row { flex-wrap: wrap; }
}
@media (max-height: 670px) {
  .q-title { margin-block: 8px; }
  .q-hint { margin-block: 6px; }
  .q-nudge { margin-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .dots, #dust { display: none; }
}

.screen > * { flex-shrink: 0; }
.cta-bar { bottom: -30px; padding-block: 10px; background: #221F1C; box-shadow: 0 -8px 20px #221F1C; }
#s-result > .cta-row { margin-top: 16px; }
.invite-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.invite-code-row .code-big { margin-block: 8px; overflow-wrap: anywhere; }
.invite-code-row .btn { width: auto; min-height: 48px; padding: 10px 14px; font-size: 16px; letter-spacing: 0; }
#friend-copy-status:empty { display: none; }
.multi-bar { bottom: 38px; background: #221F1C; box-shadow: 0 -8px 20px #221F1C; }
html[lang=en] .warn { letter-spacing: 0; }
html[lang=en] .stat { grid-template-columns: 6em minmax(0,1fr); }

html[lang=en] .vd-type > span { display: none; }
#s-done .tag-reminder{display:block;flex:0 0 auto}#s-done .tag-reminder h3{font-size:22px;line-height:1.5;margin:0 0 12px}#s-done .tag-reminder p{font-size:16px;line-height:1.8;overflow-wrap:anywhere}#s-done .tag-reminder .btn{width:100%;margin:16px 0;white-space:normal;line-height:1.6}#s-done .tag-reminder .hint{font-size:13px;margin-bottom:0}
