:root {
  color-scheme: light;
  --ink: #11110f;
  --paper: #f5f4ef;
  --surface: #ffffff;
  --soft: #e9e7df;
  --lime: #d8ff45;
  --coral: #ff6b52;
  --violet: #6758e8;
  --muted: #67655f;
  --line: rgba(17, 17, 15, 0.14);
  --danger: #aa3026;
  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #d7d6d0; color: var(--ink); }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--paper);
  padding-top: var(--safe-top);
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: flex; flex-direction: column; animation: screen-in 220ms cubic-bezier(.2,.78,.22,1); }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.kicker.inverse { color: rgba(255,255,255,.72); }
.brand { display: inline-flex; align-items: flex-start; font-size: 29px; font-weight: 950; line-height: 1; letter-spacing: -0.08em; }
.brand.small { font-size: 21px; }
.brand-dot { width: 7px; height: 7px; margin: 1px 0 0 5px; border-radius: 50%; background: var(--coral); }

.topbar {
  min-height: 60px;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  flex: none;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}
.topbar > :first-child { justify-self: start; }
.topbar > :last-child { justify-self: end; }
.step { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.icon-btn { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: transparent; font-size: 24px; }
.icon-btn.dark, .icon-btn.glass { color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(12px); }

.bottom-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.btn {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 850;
}
.btn.primary { color: #fff; background: var(--ink); box-shadow: 0 8px 24px rgba(17,17,15,.16); }
.btn.primary.accent { color: var(--ink); background: var(--lime); }
.btn.secondary { justify-content: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.btn.danger-solid { justify-content: center; color: #fff; background: var(--danger); }
.experience-link, .plain-btn { min-height: 44px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

.mode-banner {
  position: absolute;
  z-index: 95;
  top: calc(var(--safe-top) + 8px);
  left: 50%;
  min-height: 26px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #fff;
  background: rgba(17,17,15,.88);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 5px 18px rgba(0,0,0,.14);
  transition: opacity 180ms ease;
}
.mode-banner.server { opacity: 0; pointer-events: none; }
.mode-banner.experience { color: var(--ink); background: var(--lime); opacity: 1; }
.mode-banner.offline { color: var(--ink); background: #ffd8d1; }
.phone-shell:is([data-screen="camera"], [data-screen="review"], [data-screen="rendering"], [data-screen="reveal"], [data-screen="share"]) .mode-banner.experience {
  opacity: 0;
  pointer-events: none;
}
.offline-bar {
  position: absolute;
  z-index: 90;
  top: var(--safe-top);
  left: 0;
  right: 0;
  min-height: 42px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: #382e2c;
  font-size: 12px;
  font-weight: 700;
}
.offline-bar button { min-height: 44px; padding: 0 12px; border-radius: 9px; background: #fff; font-size: 12px; font-weight: 800; }
.connection-blocker {
  position: absolute;
  z-index: 92;
  inset: 0;
  padding: calc(var(--safe-top) + 40px) 24px calc(var(--safe-bottom) + 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper);
}
.connection-blocker h1 { margin: 8px 0 12px; font-size: clamp(29px, 8.5vw, 36px); line-height: 1.12; letter-spacing: -0.055em; }
.connection-blocker > p:not(.kicker) { margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.connection-mark { position: relative; width: 100%; height: 42%; min-height: 190px; margin: auto 0; }
.connection-mark i { position: absolute; width: 42%; aspect-ratio: 3/4; border-radius: 20px; background: var(--soft); }
.connection-mark i:nth-child(1) { left: 3%; top: 12%; transform: rotate(-8deg); }
.connection-mark i:nth-child(2) { left: 30%; top: 0; background: var(--coral); }
.connection-mark i:nth-child(3) { right: 2%; top: 15%; transform: rotate(8deg); background: var(--violet); }

.intro { padding: calc(var(--safe-top) + 22px) 20px calc(var(--safe-bottom) + 18px); }
.intro-head { display: flex; align-items: center; justify-content: space-between; flex: none; }
.intro-head > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.intro-stage { position: relative; height: clamp(252px, 41vh, 350px); margin: 26px -20px 8px; overflow: hidden; }
.moment-card { position: absolute; width: 41%; aspect-ratio: .72; padding: 12px; border: 4px solid var(--paper); border-radius: 22px; box-shadow: 0 14px 30px rgba(17,17,15,.18); overflow: hidden; }
.moment-card:before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, #fa9d78, #543cc2 72%); }
.moment-card i { position: absolute; width: 64%; aspect-ratio: 1; border-radius: 50%; background: #ffe58f; box-shadow: 0 0 30px #ffce67; }
.moment-card span { position: absolute; z-index: 1; left: 13px; bottom: 12px; color: #fff; font-size: 12px; font-weight: 800; }
.moment-a { left: -4%; top: 9%; transform: rotate(-7deg); }
.moment-a i { left: -14%; top: 13%; }
.moment-b { left: 30%; top: 0; z-index: 2; transform: rotate(1deg); }
.moment-b:before { background: linear-gradient(160deg, #82dcd0, #114946); }
.moment-b i { right: -10%; top: 20%; background: #d8ff45; box-shadow: none; }
.moment-c { right: -4%; top: 12%; transform: rotate(7deg); }
.moment-c:before { background: linear-gradient(160deg, #ffbd65, #e94f45 58%, #4d315f); }
.moment-c i { left: 9%; top: 16%; background: #fff1bf; }
.three-seconds { position: absolute; z-index: 5; left: 50%; bottom: 2%; width: 66px; height: 66px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 15px; font-weight: 900; box-shadow: 0 0 0 9px rgba(216,255,69,.23); }
.intro-copy { margin: 4px 0 22px; }
.intro-copy h1, .section-copy h2 { margin: 7px 0 10px; font-size: clamp(30px, 8.5vw, 38px); line-height: 1.12; letter-spacing: -0.06em; }
.intro-copy > p:last-child, .section-copy > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.58; }

.intro-result-top, .intro-result-bottom {
  position: absolute;
  z-index: 2;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.48);
}
.intro-result-top { top: 76px; align-items: center; font-size: 12px; font-weight: 800; }
.intro-result-top span:last-child { padding: 5px 8px; border-radius: 99px; background: rgba(0,0,0,.48); font-size: 12px; }
.intro-result-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
}
.intro-result-play i { width: 0; height: 0; margin-left: 4px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #fff; }
.intro-result-bottom { bottom: 14px; align-items: flex-end; }
.intro-result-bottom strong { font-size: 15px; letter-spacing: -.02em; }
.intro-result-bottom span { font-size: 12px; font-weight: 700; }

.setup, .join, .invite { padding-bottom: calc(var(--safe-bottom) + 20px); }
.setup-art { min-height: 170px; display: grid; place-items: center; }
.room-orbit { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); font-size: 14px; font-weight: 900; }
.room-orbit:before, .room-orbit:after { content: ""; position: absolute; width: 142px; height: 142px; border: 1px solid var(--ink); border-radius: 50%; }
.room-orbit:after { width: 178px; height: 178px; border-style: dashed; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.room-orbit i { position: absolute; width: 32px; height: 32px; border: 3px solid var(--paper); border-radius: 50%; background: var(--lime); left: -35px; top: 14px; }
.room-orbit i:nth-child(2) { left: auto; right: -49px; top: 57px; background: var(--violet); }
.room-orbit i:nth-child(3) { left: 17px; top: auto; bottom: -45px; background: #ffb7cc; }
.section-copy { padding: 0 24px; margin-bottom: 22px; }
.field-label { display: block; padding: 0 24px; font-size: 12px; font-weight: 800; }
.terms-check { display: flex; gap: 4px; align-items: center; margin: 14px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.terms-check input { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; accent-color: var(--coral); }
.terms-check span { display: flex; align-items: center; min-height: 44px; }
.terms-check a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 800; }
.moderation-card > p { margin: 7px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.moderation-member { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(25, 24, 22, .09); }
.moderation-member span { overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.moderation-member button { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; }
.confirm-dialog select { width: calc(100% - 48px); margin: 0 24px 18px; border: 1px solid rgba(25, 24, 22, .18); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; padding: 12px; }
.field-label.compact-label { margin-top: 10px; }
.input-wrap { margin: 5px 24px 12px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 9px 0 10px; background: transparent; font-size: 25px; font-weight: 850; }
.input-wrap span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.compact-field { margin: 4px 24px 10px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.compact-field input { width: 50%; min-width: 0; min-height: 44px; border: 0; outline: 0; padding: 10px 0; background: transparent; font-size: 15px; font-weight: 800; }
.compact-field span { margin-left: auto; color: var(--muted); font-size: 12px; }
.suggestions { padding: 0 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.suggestions button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 12px; }
.setup .bottom-actions, .join .bottom-actions, .invite .bottom-actions { padding: 18px 24px 0; }
.join-symbol { min-height: 160px; margin: 10px 24px 24px; display: flex; align-items: center; justify-content: center; gap: 1px; border-radius: var(--radius); color: #fff; background: var(--violet); font-size: 58px; font-weight: 950; letter-spacing: -0.12em; }
.join-symbol span:nth-child(2) { color: var(--lime); transform: translateY(-8px); }
.code-field { display: block; margin: 0 24px 10px; }
.code-field input { width: 100%; height: 62px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--surface); text-align: center; text-transform: uppercase; font-size: 24px; font-weight: 850; letter-spacing: .16em; }
.code-field input::placeholder { color: #b4b2ab; }
.invite-card { position: relative; min-height: 320px; margin: 12px 20px 0; padding: 28px 24px; overflow: hidden; border-radius: 24px; color: #fff; background: var(--violet); }
.invite-card:after { content: "CUT"; position: absolute; right: -18px; bottom: -36px; color: rgba(255,255,255,.08); font-size: 112px; font-weight: 950; letter-spacing: -.08em; }
.invite-card h2 { margin: 8px 0 30px; font-size: 31px; line-height: 1.16; letter-spacing: -.055em; }
.avatar-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; }
.avatar { width: 54px; height: 54px; margin-right: -6px; display: grid; place-items: center; border: 3px solid var(--violet); border-radius: 50%; background: var(--coral); font-size: 12px; font-weight: 850; overflow: hidden; }
.avatar.empty { margin-left: 12px; border: 1px dashed rgba(255,255,255,.7); background: rgba(255,255,255,.13); }
.invite-code { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.28); display: flex; align-items: flex-end; justify-content: space-between; }
.invite-code span { font-size: 12px; }
.invite-code strong { font-size: 21px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.hint { margin: 14px 30px 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }

.home { padding-bottom: calc(70px + var(--safe-bottom)); }
.home-head { min-height: 80px; padding: 18px 20px 8px; display: flex; align-items: center; justify-content: space-between; }
.home-head h2 { margin-top: 4px; font-size: 22px; letter-spacing: -.04em; }
.round-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); font-size: 12px; font-weight: 850; }
.trust-strip { margin: 0 14px 10px; display: flex; justify-content: space-between; gap: 8px; }
.trust-strip span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 750; }
.trust-strip span:last-child { background: #edf3d6; }
.mission-card { margin: 0 14px; padding-bottom: 16px; border-radius: 22px; overflow: hidden; color: #fff; background: var(--ink); }
.mission-meta { min-height: 38px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 750; }
.timer { color: var(--lime); }
.mission-visual { position: relative; height: 168px; overflow: hidden; background: linear-gradient(135deg,#f7c68d,#f97755 54%,#5642a7); }
.sun { position: absolute; left: 18px; top: 26px; width: 100px; height: 100px; border-radius: 50%; background: #fff1b2; box-shadow: 0 0 38px #ffd06d; }
.window { position: absolute; inset: 0; background: linear-gradient(90deg,transparent 48%,rgba(19,13,18,.78) 49%,rgba(19,13,18,.78) 52%,transparent 53%),linear-gradient(0deg,transparent 48%,rgba(19,13,18,.78) 49%,rgba(19,13,18,.78) 52%,transparent 53%); }
.duration { position: absolute; right: 12px; bottom: 11px; padding: 7px 9px; border-radius: 8px; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 850; }
.mission-copy { padding: 16px 17px 12px; }
.mission-no { color: var(--coral); font-size: 12px; font-weight: 800; }
.mission-copy h3 { margin: 5px 0 8px; font-size: 25px; line-height: 1.17; letter-spacing: -.055em; }
.mission-copy p { color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
.capture-cta, .result-cta { width: calc(100% - 30px); min-height: 56px; margin: 0 15px; padding: 9px 13px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 1fr 1fr; align-items: end; text-align: left; }
.record-dot { grid-row: 1/3; align-self: center; width: 21px; height: 21px; border-radius: 50%; background: var(--coral); }
.capture-cta strong { color: var(--ink); font-size: 14px; }
.capture-cta small { align-self: start; color: var(--muted); font-size: 12px; }
.result-cta { min-height: 46px; margin-top: 8px; grid-template-columns: 1fr auto; grid-template-rows: 1fr; align-items: center; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 850; }
.crew { padding: 20px; }
.crew-head { display: flex; align-items: center; justify-content: space-between; }
.crew-head h3 { font-size: 15px; }
.crew-head span { color: var(--muted); font-size: 12px; font-weight: 750; }
.members { margin-top: 13px; display: grid; grid-template-columns: repeat(auto-fit,minmax(48px,64px)); justify-content: start; gap: 12px; }
.member { min-width: 0; text-align: center; }
.member-face { position: relative; aspect-ratio: 1; border: 2px solid #fff; outline: 1px solid var(--line); border-radius: 50%; }
.palette-0 { background: #ff795e; }
.palette-1 { background: #6175ff; }
.palette-2 { background: #d7ff4f; }
.palette-3 { background: #f5afcc; }
.palette-4 { background: #ffc56e; }
.palette-5 { background: #7de2d1; }
.palette-6 { background: #9e8cff; }
.palette-7 { background: #f0efea; }
.member.done .member-face:after { content: "✓"; position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 12px; font-weight: 900; }
.member.pending .member-face { opacity: .38; }
.member b { display: block; margin-top: 6px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.member small { color: var(--muted); font-size: 12px; }
.member-empty { grid-column: 1/-1; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.nav { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(66px + var(--safe-bottom)); padding-bottom: var(--safe-bottom); border-top: 1px solid var(--line); display: flex; background: rgba(245,244,239,.94); backdrop-filter: blur(18px); }
.nav button { width: 33.333%; min-height: 58px; background: transparent; color: #85827b; font-size: 15px; }
.phone-shell[data-mode="experience"] .nav button:not([hidden]) { width: 50%; }
.nav button b { display: block; margin-top: 3px; font-size: 12px; }
.nav button.selected { color: var(--ink); }

.camera { padding-top: 0; overflow: hidden; color: #fff; background: #0d0d0d; }
.camera-feed, .camera-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.camera-feed { object-fit: cover; opacity: 0; }
.camera[data-facing="user"] .camera-feed { transform: scaleX(-1); }
.camera.actual-capture .camera-feed { opacity: 1; }
.camera.actual-capture .camera-bg { opacity: 0; }
.camera-bg, .review-demo { background: linear-gradient(160deg,#203640,#be7b54 61%,#17241c); }
.camera-bg:after, .review-demo:after, .scene:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 42% 30%,transparent,rgba(0,0,0,.52) 78%); }
.camera-light { position: absolute; left: 13%; top: 26%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #ffd887; box-shadow: 0 0 74px #ff965c; }
.plant { position: absolute; right: 15%; bottom: 11%; }
.plant i { position: absolute; right: 0; bottom: 0; width: 65px; height: 150px; border-radius: 100% 0; background: #243d2a; transform: rotate(28deg); }
.plant i:nth-child(2) { right: 32px; height: 125px; transform: rotate(-30deg); }
.plant i:nth-child(3) { right: -22px; height: 98px; transform: rotate(65deg); }
.camera-head { position: relative; z-index: 3; min-height: calc(68px + var(--safe-top)); padding: calc(10px + var(--safe-top)) 14px 8px; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; text-align: center; font-size: 13px; font-weight: 800; }
.mode-pill { padding: 7px 8px; border-radius: 99px; background: rgba(0,0,0,.38); font-size: 12px; font-weight: 800; }
.camera-guide { position: relative; z-index: 2; margin: auto; text-align: center; }
.camera-guide span { font-size: 68px; font-weight: 850; font-variant-numeric: tabular-nums; text-shadow: 0 3px 20px rgba(0,0,0,.42); }
.camera-guide p { margin-top: 10px; padding: 8px 12px; border-radius: 99px; background: rgba(0,0,0,.42); font-size: 12px; }
.permission-state { position: relative; z-index: 4; margin: auto 24px; padding: 20px; border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.95); text-align: center; }
.permission-state strong { display: block; font-size: 17px; }
.permission-state p { margin: 8px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.permission-state button { min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--lime); font-size: 12px; font-weight: 850; }
.permission-state .experience-link { margin-top: 4px; background: transparent; }
.camera-controls { position: relative; z-index: 3; min-height: calc(132px + var(--safe-bottom)); padding: 0 20px var(--safe-bottom); display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; gap: 8px; }
.shutter { width: 82px; height: 82px; padding: 6px; border: 3px solid #fff; border-radius: 50%; background: transparent; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--coral); transition: border-radius 120ms ease, transform 120ms ease; }
.shutter.recording span { border-radius: 10px; background: var(--lime); transform: scale(.56); }
.camera-side { justify-self: center; min-width: 58px; min-height: 54px; color: #fff; background: transparent; }
.camera-side span { display: block; font-size: 26px; }
.camera-side small { display: block; margin-top: 3px; font-size: 12px; }
.camera-note { color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.45; text-align: center; }

.review { padding-top: 0; overflow: hidden; color: #fff; background: #111; }
.review .topbar { position: absolute; z-index: 5; top: var(--safe-top); left: 0; right: 0; }
.review-video { position: relative; height: 55%; min-height: 310px; overflow: hidden; background: #000; }
.review-video video { display: none; width: 100%; height: 100%; object-fit: contain; }
.review-video.has-actual video { display: block; }
.review-video.has-actual .review-demo { display: none; }
.review-demo { position: absolute; inset: 0; }
.review-demo .camera-light { top: 25%; }
.clip-label { position: absolute; z-index: 3; left: 18px; bottom: 15px; padding: 7px 9px; border-radius: 8px; background: rgba(0,0,0,.46); font-size: 12px; font-weight: 800; }
.review-sheet { flex: 1; padding: 23px 24px calc(var(--safe-bottom) + 18px); display: flex; flex-direction: column; color: var(--ink); background: var(--paper); }
.review-sheet h2 { margin: 7px 0 10px; font-size: 29px; line-height: 1.15; letter-spacing: -.055em; }
.review-sheet > p:not(.kicker) { margin-bottom: auto; color: var(--muted); font-size: 12px; line-height: 1.55; }
.review-sheet .btn { margin-top: 9px; }

.waiting { padding-bottom: calc(var(--safe-bottom) + 18px); }
.all-done { padding: 24px 22px 12px; text-align: center; }
.stack { position: relative; height: 190px; margin-bottom: 14px; }
.stack:empty:after { content: "아직 제출된 장면이 없습니다"; position: absolute; inset: 22px 12%; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); background: var(--surface); font-size: 12px; }
.stack i { position: absolute; left: 50%; top: 5px; width: 120px; height: 160px; border: 4px solid var(--paper); border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.stack i:nth-child(1) { transform: translateX(-82%) rotate(-8deg); }
.stack i:nth-child(2) { transform: translateX(-50%) rotate(1deg); }
.stack i:nth-child(3) { transform: translateX(-18%) rotate(8deg); }
.all-done h2 { margin: 8px 0; font-size: 30px; line-height: 1.17; letter-spacing: -.055em; }
.all-done > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.55; }
.upload-state { margin: 0 24px 12px; padding: 14px; border: 1px solid #ebc25f; border-radius: 14px; background: #fff7df; }
.upload-state strong { font-size: 13px; }
.upload-state p { margin: 4px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.waiting .bottom-actions { padding: 0 24px; text-align: center; }
.privacy-note { color: var(--muted); font-size: 12px; line-height: 1.45; }

.rendering { padding-top: 0; align-items: center !important; overflow: hidden; color: #fff; background: var(--ink); text-align: center; }
.render-stage { position: relative; width: 100%; height: 58%; padding: 30px 18px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.render-contact { width: 100%; display: grid; grid-template-columns: repeat(auto-fit,minmax(58px,1fr)); gap: 4px; }
.render-contact[data-count="1"] { grid-template-columns: minmax(120px,160px); justify-content: center; }
.render-frame { min-width: 0; height: 106px; padding: 8px; border: 1px solid rgba(255,255,255,.38); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: #fff; text-align: left; }
.render-frame span,.render-frame small { max-width: 100%; overflow: hidden; color: rgba(255,255,255,.68); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.render-frame strong { color: var(--lime); font-size: 30px; line-height: 1; }
.render-empty { color: rgba(255,255,255,.68); font-size: 13px; }
.progress-ring { position: relative; width: 102px; height: 102px; display: grid; flex: none; place-items: center; }
.progress-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 2.4; }
.ring-track { stroke: rgba(255,255,255,.15); }
.ring-meter { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset 200ms ease; }
.progress-ring span { position: relative; font-size: 19px; font-weight: 850; }
.render-copy { padding: 0 24px; }
.render-copy h2 { margin: 8px 0; font-size: 29px; line-height: 1.17; letter-spacing: -.055em; }
.render-copy > p:last-child { color: rgba(255,255,255,.62); font-size: 12px; }
.reveal { padding-top: 0; overflow: hidden; color: #fff; background: #0d0d0d; }
.reveal-video { position: relative; height: calc(100% - 92px - var(--safe-bottom)); overflow: hidden; background: #222; }
.server-result-video { display: none; position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.reveal-video.has-server-result .server-result-video { display: block; }
.reveal-video.has-server-result .scene, .reveal-video.has-server-result .video-progress { display: none; }
.reveal-video.has-server-result .reveal-caption { top: calc(var(--safe-top) + 72px); bottom: auto; padding: 11px 13px; background: rgba(0,0,0,.72); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.reveal-video.has-server-result .reveal-caption span, .reveal-video.has-server-result .reveal-caption p { display: none; }
.reveal-video.has-server-result .reveal-caption h2 { max-width: none; margin: 0; color: #fff; font-size: 21px; line-height: 1.2; letter-spacing: -.035em; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 260ms ease; }
.scene.active { opacity: 1; }
.scene-1 { background: linear-gradient(160deg,#ffbe72,#ec654f 56%,#50305c); }
.scene-2 { background: linear-gradient(160deg,#80ded1,#1f5c58 62%,#173435); }
.scene-3 { background: linear-gradient(160deg,#9387ff,#40338e 62%,#1d153c); }
.scene-4 { background: linear-gradient(160deg,#d8ff45,#81952b 52%,#242811); }
.reveal-head { position: absolute; z-index: 4; top: var(--safe-top); left: 0; right: 0; min-height: 68px; padding: 9px 15px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: rgba(0,0,0,.72); font-size: 12px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.reveal-caption { position: absolute; z-index: 3; left: 21px; bottom: 68px; }
.reveal-caption span { color: var(--lime); font-size: 12px; font-weight: 800; }
.reveal-caption h2 { margin: 7px 0; font-size: 35px; line-height: 1.1; letter-spacing: -.06em; }
.reveal-caption p { font-size: 12px; }
.video-progress { position: absolute; z-index: 4; left: 16px; bottom: 10px; width: calc(100% - 32px); height: 3px; appearance: none; border: 0; background: rgba(255,255,255,.32); }
.video-progress::-webkit-progress-bar { background: rgba(255,255,255,.32); }
.video-progress::-webkit-progress-value { background: #fff; }
.video-progress::-moz-progress-bar { background: #fff; }
.result-actions { height: calc(92px + var(--safe-bottom)); padding: 12px 15px var(--safe-bottom); display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.result-actions p { margin-right: auto; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.45; }
.share-btn { min-height: 44px; margin-left: auto; padding: 0 15px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 850; }
.reveal.feedback-active { overflow-y: auto; color: var(--ink); background: var(--paper); }
.reveal.feedback-active .reveal-video { width: 100%; height: clamp(390px, 58dvh, 540px); min-height: 390px; flex: none; }
.reveal.feedback-active .result-actions { height: auto; min-height: calc(68px + var(--safe-bottom)); padding-bottom: max(12px, var(--safe-bottom)); }
.reveal.feedback-active .share-btn { color: #fff; background: var(--ink); }
.result-feedback { width: 100%; padding: 18px 16px 10px; color: var(--ink); background: var(--paper); }
.feedback-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.feedback-head span, .feedback-head small { color: var(--muted); font-size: 12px; }
.feedback-head span { font-weight: 800; }
.feedback-head h3 { margin-top: 4px; font-size: 20px; letter-spacing: -.04em; }
.reaction-picker { margin: 14px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.reaction-picker button { min-width: 44px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 18px; }
.reaction-picker button span { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.reaction-picker button.selected { border-color: var(--violet); background: #eeecff; box-shadow: inset 0 0 0 1px var(--violet); }
.reply-list { margin: 0; padding: 0; list-style: none; }
.reply-list li { padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(54px,auto) 1fr; gap: 10px; font-size: 12px; line-height: 1.5; }
.reply-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-list p { overflow-wrap: anywhere; }
.reply-list .reply-empty { display: block; padding: 13px 0; color: var(--muted); text-align: center; }
.reply-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 9px; }
.reply-form input { min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fff; font-size: 13px; }
.reply-form button { min-width: 64px; min-height: 46px; padding: 0 13px; border-radius: 12px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 850; }
.feedback-foot { min-height: 44px; margin-top: 5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feedback-foot p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.feedback-foot button { min-height: 44px; padding: 0 5px; flex: none; color: var(--danger); background: transparent; font-size: 12px; font-weight: 750; text-decoration: underline; }

.share { padding-bottom: calc(var(--safe-bottom) + 20px); }
.share-preview { margin: 8px 20px 14px; padding: 14px; border-radius: 18px; display: flex; align-items: center; gap: 13px; color: #fff; background: var(--ink); }
.mini-scenes { width: 68px; height: 86px; display: flex; flex: none; overflow: hidden; border-radius: 10px; }
.mini-scenes i { flex: 1; background: var(--coral); }
.mini-scenes i:nth-child(2) { background: var(--violet); }
.mini-scenes i:nth-child(3) { background: var(--lime); }
.share-preview > div:last-child { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.share-preview span, .share-preview small { color: #aaa; font-size: 12px; }
.share-preview strong { font-size: 13px; }
.consent { margin: 0 20px 9px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 10px; }
.check { position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #ffd8d1; }
.check:before { content: ""; width: 2px; height: 10px; border-radius: 2px; background: #8c251d; box-shadow: 0 13px 0 -0.25px #8c251d; }
.check.approved { background: var(--lime); }
.check.approved:before { width: 10px; height: 5px; border: 0; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; transform: rotate(-45deg); }
.consent p { min-width: 0; font-size: 12px; line-height: 1.5; }
.consent p strong { font-size: 12px; }
.consent button { min-height: 44px; margin-left: auto; flex: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: underline; }
.consent-details { margin: 0 20px 10px; padding: 13px; border-radius: 13px; background: #fff; font-size: 12px; line-height: 1.55; }
.consent-details p { margin-top: 4px; color: var(--muted); }
.share-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.share-options button { min-width: 0; min-height: 76px; background: transparent; font-size: 12px; }
.share-options i { width: 52px; height: 52px; margin: 0 auto 7px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 22px; font-style: normal; }
.system-share { background: var(--ink); }
.system-share:before { content: ""; position: absolute; left: 19px; top: 8px; width: 14px; height: 25px; background: #fff; clip-path: polygon(43% 42%,0 42%,50% 0,100% 42%,57% 42%,57% 100%,43% 100%); }
.system-share:after { content: ""; position: absolute; left: 13px; bottom: 8px; width: 26px; height: 20px; border: 2px solid #fff; border-top: 0; border-radius: 0 0 3px 3px; }
.share-options .link { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.share-status { margin: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

.settings { padding-bottom: var(--safe-bottom); }
.settings-body { padding: 5px 18px 32px; display: flex; flex-direction: column; gap: 11px; }
.settings-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.settings-card h2 { margin: 4px 0 9px; font-size: 18px; letter-spacing: -.035em; }
.settings-card > p:last-child, .settings-card div > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.small-btn { min-width: 44px; min-height: 44px; padding: 0 11px; border-radius: 10px; background: var(--lime); font-size: 12px; font-weight: 850; white-space: nowrap; }
.small-btn.destructive { color: #87251e; background: #ffe1dc; }
.server-card ul, .trust-card ul { margin: 10px 0 0; padding: 0; list-style: none; }
.server-card li, .trust-card li { min-height: 38px; padding: 9px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.server-card li span, .trust-card li span { color: var(--muted); text-align: right; }
.server-actions { margin-top: 10px; display: flex; gap: 7px; }
.server-actions button { flex: 1; white-space: normal; }
.install-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.install-card > div { min-width: 0; }
.settings-card label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.settings-card input { width: 100%; height: 44px; margin-bottom: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-weight: 800; }
.policy-links { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.policy-links a { min-height: 45px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 750; text-decoration: none; }
.policy-links a:last-child { border-bottom: 0; }
.policy-links a:after { content: "↗"; color: var(--muted); }
.danger-btn, .plain-btn { min-height: 48px; border-radius: 13px; font-size: 12px; font-weight: 800; }
.danger-btn { border: 1px solid rgba(170,48,38,.34); color: var(--danger); background: transparent; }
.plain-btn { border: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none; }
.settings-foot { padding: 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

.confirm-dialog { width: min(364px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 0; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.38); }
.confirm-dialog::backdrop { background: rgba(13,13,13,.66); backdrop-filter: blur(5px); }
.dialog-icon { position: relative; width: 50px; height: 50px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 22px; }
.dialog-icon.danger { color: #8c251d; background: #ffd8d1; }
.confirm-dialog h2 { margin: 8px 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -.05em; }
.confirm-dialog > p:not(.kicker) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
.dialog-actions .btn { min-height: 50px; padding: 0 11px; font-size: 12px; }
.toast { position: absolute; z-index: 110; left: 50%; bottom: calc(22px + var(--safe-bottom)); width: max-content; max-width: calc(100% - 36px); padding: 12px 16px; border-radius: 12px; transform: translate(-50%,16px); opacity: 0; pointer-events: none; color: #fff; background: rgba(17,17,15,.95); box-shadow: 0 9px 28px rgba(0,0,0,.27); font-size: 12px; line-height: 1.45; text-align: center; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.copy-fallback { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-height: 740px) {
  .intro-stage { height: 225px; margin-top: 18px; }
  .intro-copy h1 { font-size: 29px; }
  .intro-copy { margin-bottom: 14px; }
  .setup-art { min-height: 145px; }
  .room-orbit { transform: scale(.82); }
  .mission-visual { height: 140px; }
  .mission-copy h3 { font-size: 22px; }
  .stack { height: 150px; }
  .stack i { width: 104px; height: 132px; }
  .invite-card { min-height: 280px; }
}

@media (max-width: 374px) {
  .intro, .setup .bottom-actions, .join .bottom-actions, .invite .bottom-actions { padding-left: 18px; padding-right: 18px; }
  .section-copy, .field-label, .suggestions { padding-left: 20px; padding-right: 20px; }
  .input-wrap, .compact-field, .code-field { margin-left: 20px; margin-right: 20px; }
  .intro-copy h1, .section-copy h2 { font-size: 29px; }
  .mission-card { margin-left: 10px; margin-right: 10px; }
  .mission-copy h3 { font-size: 23px; }
  .share-options { gap: 10px; }
}

@media (min-width: 431px) {
  body { padding: 18px; }
  .phone-shell { height: calc(100dvh - 36px); border-radius: 30px; box-shadow: 0 18px 70px rgba(0,0,0,.2); }
}

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

/* CUT editorial camera interface */
.mode-banner[hidden] { display: none !important; }
.btn { border-radius: 5px; }
.btn.primary { color: #fff; background: var(--ink); }
.btn.secondary { border: 1px solid var(--line); background: transparent; }

.ui-icon { position: relative; width: 20px; height: 20px; display: block; }
.icon-back:before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.icon-back:after { content: ""; position: absolute; left: 5px; top: 9px; width: 13px; height: 2px; background: currentColor; }
.icon-close:before,.icon-close:after { content: ""; position: absolute; left: 9px; top: 2px; width: 2px; height: 16px; background: currentColor; }
.icon-close:before { transform: rotate(45deg); }
.icon-close:after { transform: rotate(-45deg); }
.icon-add:before,.icon-add:after { content: ""; position: absolute; left: 9px; top: 3px; width: 2px; height: 14px; background: currentColor; }
.icon-add:after { transform: rotate(90deg); }
.round-avatar.full .icon-add:before { left: 5px; top: 9px; width: 7px; height: 2px; transform: rotate(42deg); }
.round-avatar.full .icon-add:after { left: 10px; top: 5px; width: 2px; height: 11px; transform: rotate(38deg); }
.icon-btn.show-pause .icon-media:before,.icon-btn.show-pause .icon-media:after { content: ""; position: absolute; top: 3px; width: 3px; height: 14px; background: currentColor; }
.icon-btn.show-pause .icon-media:before { left: 5px; }
.icon-btn.show-pause .icon-media:after { right: 5px; }
.icon-btn.show-play .icon-media:before { content: ""; position: absolute; left: 6px; top: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.copy-mark { position: relative; width: 16px; height: 16px; margin-left: 8px; display: inline-block; vertical-align: middle; }
.copy-mark:before { content: ""; position: absolute; left: 2px; top: 4px; width: 9px; height: 7px; border: 1.5px solid currentColor; }
.copy-mark:after { content: ""; position: absolute; left: 5px; top: 1px; width: 9px; height: 7px; border: 1.5px solid currentColor; background: var(--ink); }
.copy-mark.copied:before { left: 3px; top: 7px; width: 6px; height: 3px; border: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.copy-mark.copied:after { display: none; }

.intro { padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 18px); }
.intro-head > span { color: var(--ink); letter-spacing: .06em; }
.intro-reel { height: clamp(248px, 39vh, 330px); margin: 24px 0 22px; padding: 4px; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; background: var(--ink); }
.life-frame { position: relative; min-width: 0; overflow: hidden; }
.life-frame time { position: absolute; right: 7px; bottom: 7px; padding: 3px 4px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.life-frame.commute { background: #c8d0ce; }
.platform-line { position: absolute; left: 0; right: 0; top: 58%; height: 12px; background: #f2cb32; box-shadow: 0 15px 0 #7d8582; }
.shoe { position: absolute; width: 42px; height: 78px; border: 3px solid var(--ink); border-radius: 20px 20px 8px 8px; background: #f8f6ed; transform: rotate(8deg); }
.shoe:after { content: ""; position: absolute; left: 7px; right: 7px; top: 28px; height: 3px; background: var(--coral); box-shadow: 0 9px 0 var(--coral),0 18px 0 var(--coral); }
.shoe.one { left: 12px; bottom: 45px; }
.shoe.two { right: 8px; bottom: 18px; transform: rotate(-12deg); }
.life-frame.desk { background: #dfcda7; }
.cup { position: absolute; left: 15px; top: 28px; width: 52px; height: 60px; border: 4px solid var(--ink); border-radius: 4px 4px 15px 15px; background: #f7f2e4; }
.cup:after { content: ""; position: absolute; right: -18px; top: 13px; width: 17px; height: 24px; border: 4px solid var(--ink); border-left: 0; border-radius: 0 14px 14px 0; }
.phone { position: absolute; right: 10px; bottom: 54px; width: 47px; height: 88px; border: 4px solid var(--ink); border-radius: 8px; background: #497a74; transform: rotate(7deg); }
.pencil { position: absolute; left: 22px; bottom: 58px; width: 8px; height: 96px; background: var(--coral); transform: rotate(-22deg); }
.life-frame.night { background: #263445; }
.lamp { position: absolute; left: 19px; top: 22px; width: 62px; height: 45px; background: #f4c845; clip-path: polygon(18% 0,82% 0,100% 100%,0 100%); }
.lamp:after { content: ""; position: absolute; left: 28px; top: 42px; width: 6px; height: 88px; background: #0e1115; box-shadow: -20px 84px 0 4px #0e1115; }
.book { position: absolute; left: 10px; right: 10px; bottom: 38px; height: 44px; border: 3px solid #0e1115; background: #f1eee2; transform: rotate(-3deg); }
.window-night { position: absolute; right: 6px; top: 96px; width: 37px; height: 54px; border: 3px solid #f1eee2; }
.window-night:before,.window-night:after { content: ""; position: absolute; background: #f1eee2; }
.window-night:before { left: 16px; top: 0; bottom: 0; width: 2px; }
.window-night:after { left: 0; right: 0; top: 24px; height: 2px; }
.intro-copy { margin: 0 0 22px; }
.intro-copy h1 { margin: 0 0 8px; font-size: clamp(34px,9.5vw,42px); line-height: 1.06; letter-spacing: -.065em; }
.intro-copy > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.45; }
.intro .bottom-actions { margin-top: auto; }

.setup .section-copy,.join .section-copy { margin: 38px 0 30px; }
.section-copy h2 { margin: 0 0 9px; font-size: clamp(34px,9vw,40px); line-height: 1.08; }
.setup-art,.join-symbol { display: none; }
.suggestions { gap: 18px; }
.suggestions button { min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }

.invite { background: var(--lime); }
.invite-copy { padding: 34px 24px 20px; }
.invite-copy h2 { font-size: 36px; letter-spacing: -.06em; }
.invite-copy p { margin-top: 8px; font-size: 14px; color: #47483f; }
.invite-ticket { margin: 12px 20px 0; padding: 23px; border: 3px solid var(--ink); background: var(--paper); }
.invite-ticket > span { font-size: 12px; font-weight: 850; }
.invite-ticket > strong { display: block; margin: 12px 0 30px; font-size: clamp(38px,12vw,53px); line-height: 1; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.invite-ticket .avatar-row { margin: 0; }
.invite .hint { color: #45463e; }
.invite .btn.accent { color: #fff; background: var(--ink); }

.home { background: #f4f2eb; }
.home-head { min-height: 90px; padding: 20px 18px 12px; }
.home-head h2 { font-size: 27px; }
.round-avatar { border-radius: 4px; color: #fff; background: var(--ink); }
.mission-card { margin: 0 14px; padding: 0; border-radius: 2px; }
.mission-meta { min-height: 52px; padding: 0 18px; justify-content: flex-end; border-bottom: 1px solid rgba(255,255,255,.2); }
.mission-meta > span { color: var(--lime); }
.mission-change { min-height: 44px; padding: 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.65); background: transparent; font-size: 12px; font-weight: 800; }
.mission-change:disabled { border-bottom-color: transparent; color: rgba(255,255,255,.45); }
.mission-copy { min-height: 166px; padding: 26px 18px 22px; display: flex; align-items: flex-end; }
.mission-copy h3 { max-width: 330px; margin: 0; font-size: clamp(34px,9vw,42px); line-height: 1.04; letter-spacing: -.065em; word-break: keep-all; }
.capture-cta,.result-cta { min-height: 66px; margin: 0; padding: 0 18px; border-radius: 0; color: var(--ink); background: var(--lime); }
.capture-cta small { color: #4c521f; }
.record-dot { background: var(--coral); }
.result-cta { color: #fff; background: var(--violet); }
.crew { padding: 22px 18px; }
.crew-head { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.crew-head h3 { font-size: 18px; }
.members { display: flex; flex-wrap: wrap; gap: 16px; }
.member { width: 58px; }
.member-face { display: grid; place-items: center; border: 2px solid var(--ink); outline: 0; border-radius: 50%; color: var(--ink); background: transparent !important; font-size: 17px; font-weight: 900; }
.member.done .member-face { color: #fff; background: var(--ink) !important; }
.member.pending .member-face { opacity: 1; border-style: dashed; color: var(--muted); }
.member-empty { padding: 14px 0; border: 0; border-radius: 0; text-align: left; }
.nav { background: rgba(244,242,235,.96); }
.nav button { font-size: 12px; font-weight: 800; }
.nav button.selected { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

.camera-head .mode-pill { border: 0; border-radius: 0; background: transparent; }
.camera-switch { position: relative; width: 22px; height: 20px; display: block; }
.camera-switch:before,.camera-switch:after { content: ""; position: absolute; left: 2px; width: 16px; height: 8px; border: 2px solid currentColor; }
.camera-switch:before { top: 1px; border-left-color: transparent; border-bottom: 0; border-radius: 12px 12px 0 0; }
.camera-switch:after { bottom: 1px; border-right-color: transparent; border-top: 0; border-radius: 0 0 12px 12px; }
.camera-note { max-width: 90px; line-height: 1.3; }
.camera-bg,.review-demo { background: #263445; }
.camera-bg:after,.review-demo:after { display: none; }
.demo-room { overflow: hidden; }
.demo-window { position: absolute; left: 11%; top: 13%; width: 43%; height: 26%; border: 5px solid #111; background: #13202d; box-shadow: inset 0 0 0 2px #6f7d86; }
.demo-window:before,.demo-window:after { content: ""; position: absolute; background: #111; }
.demo-window:before { left: 50%; top: 0; bottom: 0; width: 3px; }
.demo-window:after { left: 0; right: 0; top: 51%; height: 3px; }
.demo-window i { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: #f2c841; }
.demo-window i:nth-child(1) { left: 16%; top: 19%; }
.demo-window i:nth-child(2) { right: 18%; top: 32%; }
.demo-window i:nth-child(3) { left: 34%; bottom: 18%; }
.demo-lamp { position: absolute; z-index: 2; right: 13%; top: 22%; width: 92px; height: 238px; }
.demo-lamp:before { content: ""; position: absolute; left: 0; top: 0; width: 92px; height: 68px; background: #f2c841; clip-path: polygon(19% 0,81% 0,100% 100%,0 100%); }
.demo-lamp:after { content: ""; position: absolute; left: 43px; top: 66px; width: 6px; height: 166px; background: #111; box-shadow: -23px 164px 0 1px #111,23px 164px 0 1px #111; }
.demo-desk { position: absolute; z-index: 1; left: -4%; right: -4%; bottom: 18%; height: 22%; border-top: 6px solid #111; background: #a57854; transform: rotate(-2deg); }
.demo-mug { position: absolute; z-index: 2; left: 15%; bottom: 25%; width: 72px; height: 83px; border: 5px solid #111; border-radius: 5px 5px 20px 20px; background: #f4f0e3; transform: rotate(-2deg); }
.demo-mug:after { content: ""; position: absolute; right: -29px; top: 18px; width: 25px; height: 34px; border: 5px solid #111; border-left: 0; border-radius: 0 18px 18px 0; }
.demo-book { position: absolute; z-index: 2; right: 13%; bottom: 24%; width: 108px; height: 61px; border: 5px solid #111; background: #e8664f; transform: rotate(7deg); }
.demo-room time { position: absolute; z-index: 3; right: 13%; bottom: calc(144px + var(--safe-bottom)); padding: 4px 6px; color: #111; background: var(--lime); font-size: 12px; font-weight: 900; }
.permission-state { margin: auto 18px; padding: 20px; border: 2px solid var(--ink); border-radius: 4px; background: #f4f2eb; text-align: left; }
.permission-state strong { font-size: 19px; }
.permission-state p { margin: 8px 0 16px; font-size: 13px; }
.permission-state button { width: 100%; border-radius: 4px; color: #fff; background: var(--ink); font-size: 13px; }
.permission-state .experience-link { margin-top: 8px; color: var(--ink); border-bottom: 1px solid var(--ink); background: transparent; }
.camera-head > b { padding: 0 4px; line-height: 1.25; word-break: keep-all; }
.review-sheet h2 { font-size: 34px; }
.review-sheet > p:not(.kicker) { max-width: 290px; }

.all-done { padding-top: 40px; text-align: left; }
.waiting-number { width: 100%; min-height: 190px; margin-bottom: 30px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); }
.waiting-number strong { color: var(--lime); font-size: clamp(64px,21vw,92px); line-height: .88; letter-spacing: -.08em; }
.waiting-number span { margin-top: 12px; font-size: 13px; font-weight: 800; }
.all-done h2 { font-size: 35px; }
.all-done > p:last-child { max-width: 330px; font-size: 14px; }

.reveal-caption { left: 18px; right: 18px; bottom: 46px; }
.reveal-caption h2 { max-width: 340px; font-size: 34px; word-break: keep-all; }
.scene { background: #263445; }
.scene:before,.scene:after { content: ""; position: absolute; inset: auto; opacity: 1; }
.scene-1 { background: #afb9bb; }
.scene-1:before { left: 0; right: 0; bottom: 32%; height: 18px; background: #f2cb32; box-shadow: 0 24px 0 #737c7b; }
.scene-1:after { left: 21%; bottom: 11%; width: 64px; height: 138px; border: 5px solid #111; border-radius: 30px 30px 10px 10px; background: #f7f4e9; transform: rotate(9deg); box-shadow: 124px -25px 0 -5px #f7f4e9,124px -25px 0 0 #111; }
.scene-2 { background: #d7c29c; }
.scene-2:before { left: 14%; top: 20%; width: 92px; height: 105px; border: 6px solid #111; border-radius: 7px 7px 24px 24px; background: #f8f3e6; box-shadow: 107px 168px 0 6px #4f7e79,107px 168px 0 12px #111; }
.scene-2:after { left: 10%; right: 10%; bottom: 18%; height: 10px; background: #e8664f; transform: rotate(-12deg); }
.scene-3 { background: #263445; }
.scene-3:before { left: 12%; top: 17%; width: 132px; height: 82px; background: #f2c841; clip-path: polygon(18% 0,82% 0,100% 100%,0 100%); }
.scene-3:after { left: 8%; right: 8%; bottom: 18%; height: 84px; border: 5px solid #111; background: #f1eee2; transform: rotate(-4deg); box-shadow: 255px -187px 0 -26px #263445,255px -187px 0 -21px #f1eee2; }
.scene-4 { background: #bdcf4d; }
.scene-4:before { left: 17%; right: 17%; bottom: 14%; height: 230px; border: 6px solid #111; background: #f3efdc; transform: rotate(3deg); }
.scene-4:after { left: 29%; bottom: 42%; width: 62px; height: 62px; border-radius: 50%; background: #e86750; box-shadow: 75px 22px 0 #477b72,128px -31px 0 #f0c83c; }
.result-feedback { padding: 24px 18px 12px; }
.feedback-head h3 { font-size: 23px; }
.feedback-head span { display: none; }
.reply-empty { text-align: left; }
.next-mission { width: 100%; padding: 24px 18px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--lime); }
.next-mission span { font-size: 12px; font-weight: 850; }
.next-mission strong { display: block; margin-top: 9px; font-size: 25px; line-height: 1.2; letter-spacing: -.045em; }
.next-mission p { margin-top: 7px; font-size: 12px; }
.reveal.next-up { overflow-y: auto; color: var(--ink); background: var(--paper); }
.reveal.next-up .reveal-video { width: 100%; height: clamp(390px,58dvh,540px); min-height: 390px; flex: none; }
.reveal.next-up .result-actions { height: auto; min-height: calc(68px + var(--safe-bottom)); padding-bottom: max(12px,var(--safe-bottom)); }
.reveal.next-up .share-btn { color: #fff; background: var(--ink); }
.share-btn { border-radius: 4px; }
.share { overflow-y: auto; color: var(--ink); background: #f4f2eb; }
.share-preview { margin: 8px 18px 0; padding: 0; border-radius: 0; display: block; color: var(--ink); background: transparent; }
.share-frame { position: relative; height: clamp(270px,38dvh,340px); overflow: hidden; border: 3px solid var(--ink); background: #d7c29c; }
.share-frame-fallback { position: absolute; inset: 0; overflow: hidden; background: #d7c29c; }
.frame-table { position: absolute; left: -4%; right: -4%; bottom: -10%; height: 48%; border-top: 5px solid var(--ink); background: #b98c5e; transform: rotate(-3deg); }
.frame-cup { position: absolute; left: 14%; top: 18%; width: 76px; height: 86px; border: 5px solid var(--ink); border-radius: 5px 5px 22px 22px; background: #f4f0e3; }
.frame-cup:after { content: ""; position: absolute; right: -28px; top: 18px; width: 25px; height: 34px; border: 5px solid var(--ink); border-left: 0; border-radius: 0 18px 18px 0; }
.frame-phone { position: absolute; right: 13%; bottom: 18%; width: 66px; height: 122px; border: 5px solid var(--ink); border-radius: 9px; background: #497a74; transform: rotate(9deg); }
.share-frame video { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #111; transition: opacity 120ms ease; }
.share-frame.actual-frame-ready video { opacity: 1; }
.share-frame > span { position: absolute; z-index: 3; left: 10px; bottom: 10px; padding: 4px 6px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 850; }
.share-preview-copy { padding: 18px 0 20px; border-bottom: 2px solid var(--ink); }
.share-preview-copy p { margin-bottom: 8px; font-size: 12px; font-weight: 850; }
.share-preview-copy h2 { max-width: 340px; margin: 0 0 9px; font-size: 31px; line-height: 1.08; letter-spacing: -.055em; word-break: keep-all; }
.share-preview-copy small { color: var(--muted); font-size: 12px; }
.share .consent { margin: 0 18px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.share .consent-details { margin: 0 18px 12px; padding: 16px; border-radius: 0; background: var(--lime); }
.share .share-options { margin: 0 18px; padding: 5px 0 17px; border-bottom: 2px solid var(--ink); }
.share .share-options i { border-radius: 4px; }
.share .share-status { margin: 14px 18px 24px; text-align: left; }
.social-mark { position: relative; display: block; }
.share-options .link { background: #fff; }
.share-options .link:before,.share-options .link:after { content: ""; position: absolute; width: 19px; height: 10px; border: 2px solid var(--ink); border-radius: 8px; transform: rotate(-38deg); }
.share-options .link:before { left: 11px; top: 15px; }
.share-options .link:after { right: 10px; bottom: 14px; }
.policy-links a:after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); }
.share-dialog-mark:before { content: ""; width: 20px; height: 16px; border: 2px solid var(--ink); border-radius: 2px; }
.share-dialog-mark:after { content: ""; position: absolute; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(-45deg); }
.delete-dialog-mark:before,.delete-dialog-mark:after { content: ""; position: absolute; width: 2px; height: 22px; background: #8c251d; }
.delete-dialog-mark:before { transform: rotate(45deg); }
.delete-dialog-mark:after { transform: rotate(-45deg); }

.settings-body { flex: none; padding: 4px 20px 36px; gap: 0; }
.settings-section { padding: 24px 0; border-top: 2px solid var(--ink); background: transparent; }
.settings-section h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.04em; }
.settings-section > p:last-child,.settings-section div > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-section input { width: 100%; height: 48px; margin: 2px 0 8px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; font-size: 18px; font-weight: 850; }
.settings-row { align-items: center; }
.text-btn { min-width: 44px; min-height: 44px; padding: 0 2px; border-bottom: 1px solid var(--ink); background: transparent; font-size: 12px; font-weight: 800; }
.server-card > p { color: var(--muted); font-size: 12px; }
.server-card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.server-card li { min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.server-card li span { color: var(--muted); text-align: right; }
.server-actions { gap: 8px; }
.small-btn { border-radius: 4px; }
.install-card { display: flex; }
.policy-links { margin-top: 0; border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: transparent; }
.policy-links a { padding: 0; }
.danger-btn,.plain-btn { margin-top: 12px; border-radius: 4px; }
.settings-foot { text-align: left; }

@media (max-height: 740px) {
  .intro-reel { height: 220px; margin: 16px 0 14px; }
  .intro-copy h1 { font-size: 32px; }
  .intro-copy { margin-bottom: 12px; }
  .setup .section-copy,.join .section-copy { margin-top: 18px; }
  .mission-copy { min-height: 125px; }
}

@media (max-width: 374px) {
  .intro-reel { margin-left: 0; margin-right: 0; }
  .intro-copy h1,.section-copy h2 { font-size: 32px; }
  .mission-copy h3 { font-size: 34px; }
  .invite-ticket > strong { font-size: 38px; }
}

@media (min-width: 400px) and (min-height: 860px) {
  .intro-reel { height: min(44dvh,410px); margin-top: 20px; margin-bottom: 18px; }
  .intro-copy { margin-bottom: 18px; }
}

/* 2026-09-05: photo-journal direction */
:root {
  --ink: #171713;
  --paper: #f0ece3;
  --surface: #f8f5ed;
  --soft: #d5cfc2;
  --lime: #ff5b38;
  --coral: #ff5b38;
  --violet: #173b57;
  --muted: #625f57;
  --line: rgba(23, 23, 19, .28);
  --font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-editorial: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif;
  font-family: var(--font-ui);
}

html, body { background: #c9c3b7; }
body, button, input { font-family: var(--font-ui); }
.phone-shell, .screen { background: var(--paper); }
.phone-shell { border-right: 1px solid rgba(23,23,19,.18); border-left: 1px solid rgba(23,23,19,.18); }
.screen.active { animation: none; }
.brand { align-items: center; font-family: "Avenir Next", var(--font-ui); font-size: 28px; font-weight: 900; letter-spacing: -.07em; }
.brand-dot { width: 6px; height: 6px; margin: -14px 0 0 5px; border-radius: 0; background: var(--coral); transform: rotate(45deg); }
.kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.topbar { min-height: 64px; padding: 8px 18px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.icon-btn { border-radius: 0; }
.btn { min-height: 56px; border-radius: 0; font-weight: 750; box-shadow: none !important; }
.btn.primary { color: #fff; background: var(--ink); }
.btn.primary.accent { color: #fff; background: var(--ink); }
.btn.secondary { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.bottom-actions { gap: 0; }
.mode-banner { border-radius: 0; box-shadow: none; backdrop-filter: none; }

.intro { padding: calc(var(--safe-top) + 18px) 18px calc(var(--safe-bottom) + 16px); }
.intro-head { min-height: 39px; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.intro-head > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.intro-reel {
  height: clamp(276px, 36vh, 322px);
  margin: 16px 0 22px;
  padding: 0;
  grid-template-columns: 1.17fr .83fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  background: transparent;
}
.life-frame { border: 2px solid var(--ink); }
.life-frame.commute { grid-row: 1 / 3; }
.life-frame time { right: 0; bottom: 0; padding: 4px 5px; font-family: "Avenir Next Condensed", var(--font-ui); letter-spacing: .04em; }
.intro-copy { margin: 0 0 20px; padding-left: 2px; }
.intro-copy h1, .section-copy h2, .review-sheet h2, .all-done h2, .render-copy h2, .share-preview-copy h2, .settings-section h2 {
  font-family: var(--font-editorial);
  font-weight: 700;
  letter-spacing: -.055em;
}
.intro-copy h1 { max-width: 340px; margin: 0 0 9px; font-size: clamp(37px,10.4vw,45px); line-height: 1.08; }
.intro-copy h1, .mission-copy h3, .invite-copy h2, .share-preview-copy h2 { word-break: keep-all; }
.intro-copy > p:last-child { color: #4f4c46; font-size: 14px; line-height: 1.55; }
.intro .bottom-actions { margin-top: auto; border-top: 2px solid var(--ink); }
.intro .btn { padding: 0 2px; justify-content: flex-start; }
.intro .btn::after { content: "→"; margin-left: auto; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.intro .btn.primary { padding: 0 14px; }
.intro .btn.secondary { color: var(--ink); }
.intro .experience-link { min-height: 44px; padding: 0 2px; text-align: left; text-decoration: none; }

.setup .section-copy, .join .section-copy { margin: 44px 0 35px; }
.section-copy h2 { font-size: clamp(36px,10vw,44px); line-height: 1.1; }
.field-label { letter-spacing: .06em; }
.input-wrap { border-bottom-width: 1px; }
.input-wrap input { font-family: var(--font-editorial); font-size: 28px; font-weight: 700; }
.compact-field input { font-weight: 700; }
.suggestions { gap: 6px 18px; }
.suggestions button { font-weight: 650; }

.invite { color: var(--ink); background: var(--paper); }
.invite-copy { padding-top: 34px; }
.invite-copy h2 { margin: 0; font-family: var(--font-editorial); font-size: 41px; font-weight: 700; line-height: 1.1; }
.invite-ticket { margin-top: 18px; padding: 25px 22px; border: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--coral); }
.invite-ticket > strong { font-family: "Avenir Next Condensed", var(--font-ui); font-weight: 800; }
.invite .hint { color: var(--muted); }

.home { background: var(--paper); }
.home-head { min-height: 92px; padding: 18px 18px 13px; border-bottom: 1px solid var(--ink); }
.home-head h2 { margin-top: 6px; font-family: var(--font-editorial); font-size: 29px; font-weight: 700; letter-spacing: -.045em; }
.round-avatar { border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; }
.mission-card { margin: 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; }
.mission-meta { min-height: 45px; padding: 0 18px; border: 0; justify-content: space-between; }
.mission-meta::before { content: "오늘의 장면"; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.mission-meta > span { color: var(--muted); }
.mission-change { color: var(--ink); border-bottom-color: var(--ink); }
.mission-change:disabled { color: var(--muted); }
.mission-copy { min-height: 184px; padding: 22px 18px 28px; align-items: center; }
.mission-copy h3 { max-width: 360px; color: var(--ink); font-family: var(--font-editorial); font-size: clamp(39px,11vw,50px); font-weight: 700; line-height: 1.08; letter-spacing: -.065em; }
.capture-cta, .result-cta { min-height: 68px; padding: 0 18px; color: #fff; background: var(--coral); }
.capture-cta small { color: rgba(255,255,255,.8); }
.record-dot { border: 2px solid #fff; background: transparent; }
.result-cta { background: var(--violet); }
.crew { padding: 25px 18px; }
.crew-head { border-bottom-width: 1px; }
.crew-head h3 { font-family: var(--font-editorial); font-size: 20px; }
.member-face { border: 1px solid var(--ink); border-radius: 0; }
.member.done .member-face { color: #fff; background: var(--ink) !important; }
.member.done .member-face::after { border-radius: 0; }
.nav { border-top: 1px solid var(--ink); color: #fff; background: var(--ink); backdrop-filter: none; }
.nav button, .nav button.selected { color: #bbb6ac; }
.nav button.selected { color: #fff; text-decoration-color: var(--coral); }
.phone-shell[data-mode="experience"] .mission-card { height: calc(100dvh - 158px - var(--safe-top) - var(--safe-bottom)); display: flex; flex-direction: column; }
.phone-shell[data-mode="experience"] .mission-copy { min-height: 0; flex: 1; }

.permission-state { border-width: 1px; border-radius: 0; box-shadow: 8px 8px 0 rgba(0,0,0,.32); }
.permission-state strong, .review-sheet h2, .all-done h2 { font-family: var(--font-editorial); }
.permission-state button, .share-btn, .small-btn, .danger-btn, .plain-btn { border-radius: 0; }
.review-sheet { border-radius: 0; }
.waiting-number { background: var(--violet); }
.waiting-number strong { color: #fff; font-family: "Avenir Next Condensed", var(--font-ui); }
.progress-ring { border-radius: 0; }
.next-mission { background: #e5dfd2; }
.reveal-caption h2, .feedback-head h3, .next-mission strong { font-family: var(--font-editorial); font-weight: 700; }
.feedback-head h3 { font-size: 25px; }
.reaction-picker { gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.reaction-picker button { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.reaction-picker button:last-child { border-right: 0; }
.reaction-picker button.selected { border-color: var(--line); background: #ded8cc; box-shadow: none; }
.reply-form { gap: 0; }
.reply-form input { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }
.reply-form button { border-radius: 0; }
.share-frame { border-width: 1px; }
.share-preview-copy { border-bottom-width: 1px; }
.share .consent, .share .share-options { border-bottom-width: 1px; }
.share .consent-details { background: #ddd6c8; }
.settings-body { padding-top: 10px; }
.settings-section { border-color: var(--ink); }
.settings-section h2 { font-size: 25px; }
.policy-links { border-top-width: 1px; }
.confirm-dialog { border-radius: 0; background: var(--paper); box-shadow: 10px 10px 0 rgba(0,0,0,.28); }
.dialog-icon { border-radius: 0; background: var(--coral); }
.toast { border-radius: 0; box-shadow: none; }

@media (max-width: 374px) {
  .intro { padding-right: 14px; padding-left: 14px; }
  .intro-reel { height: 265px; }
  .intro-copy h1 { font-size: 35px; }
  .mission-copy h3 { font-size: 37px; }
}

/* 2026-09-05: reference-led photo app direction */
@font-face {
  font-family: "Pretendard CUT";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --surface: #f3f3f1;
  --soft: #e7e7e4;
  --coral: #ff3b30;
  --lime: #ff3b30;
  --violet: #111111;
  --muted: #6f6f6b;
  --line: rgba(17,17,17,.12);
  --font-product: "Pretendard CUT", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

html, body { background: #ececea; }
body, button, input { font-family: var(--font-product); }
.phone-shell { border: 0; background: var(--paper); }
.screen, .phone-shell[data-mode="experience"] .screen { background: var(--paper); }
.brand { font-family: var(--font-product); font-size: 31px; font-weight: 900; letter-spacing: -.075em; }
.brand-dot { width: 7px; height: 7px; margin: 0 0 0 5px; border-radius: 50%; background: var(--coral); transform: none; }
.kicker { font-size: 12px; font-weight: 650; letter-spacing: 0; }
.topbar { min-height: 60px; padding: 8px 16px; border: 0; font-size: 15px; font-weight: 650; }
.icon-btn { border-radius: 50%; }
.btn { min-height: 56px; border-radius: 15px; font-size: 16px; font-weight: 700; }
.btn.primary, .btn.primary.accent { color: #fff; background: var(--ink); }
.btn.secondary { border: 0; background: var(--surface); }
.mode-banner { border: 0; border-radius: 99px; box-shadow: none; }

.intro { padding: calc(var(--safe-top) + 22px) 20px calc(var(--safe-bottom) + 18px); }
.intro-head { min-height: 42px; padding: 0; border: 0; }
.intro-head > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.intro-reel { display: none; }
.intro-copy { margin: auto 0 38px; padding: 0; }
.intro-copy::before { content: "오늘도 3초"; display: block; margin-bottom: 15px; color: var(--coral); font-size: 12px; font-weight: 750; letter-spacing: 0; }
.intro-copy h1 { max-width: none; margin: 0 0 12px; font-family: var(--font-product); font-size: clamp(39px,11vw,46px); font-weight: 780; line-height: 1.04; letter-spacing: -.055em; }
.intro-copy > p:last-child { max-width: 300px; color: #595956; font-size: 16px; line-height: 1.5; }
.intro .bottom-actions { gap: 10px; margin-top: 0; border: 0; }
.intro .btn { padding: 0 18px; justify-content: center; }
.intro .btn::after { display: none; }
.intro .experience-link { min-height: 44px; padding: 0; text-align: center; text-decoration: none; }

.setup .section-copy, .join .section-copy { margin: 46px 0 30px; }
.section-copy h2, .review-sheet h2, .all-done h2, .render-copy h2, .share-preview-copy h2, .settings-section h2,
.intro-copy h1, .mission-copy h3, .invite-copy h2, .reveal-caption h2, .feedback-head h3, .next-mission strong {
  font-family: var(--font-product);
}
.section-copy h2 { font-size: clamp(32px,9vw,39px); font-weight: 760; letter-spacing: -.05em; }
.input-wrap input { font-family: var(--font-product); font-size: 27px; font-weight: 720; }
.suggestions { gap: 8px; }
.suggestions button { padding: 0 14px; border-radius: 22px; background: var(--surface); font-weight: 600; }
.code-field input { border: 0; border-radius: 14px; background: var(--surface); }

.invite-copy { padding-top: 42px; }
.invite-copy h2 { font-size: 34px; font-weight: 750; letter-spacing: -.045em; }
.invite-ticket { margin: 22px 20px 0; padding: 25px 22px; border: 0; border-radius: 24px; color: #fff; background: var(--ink); }
.invite-ticket > strong { font-family: var(--font-product); font-weight: 800; }
.avatar { border-color: var(--ink); }
.invite .hint { color: var(--muted); }

.home { background: var(--paper); }
.home-head { min-height: 80px; padding: 15px 18px 10px; border: 0; }
.home-head h2 { margin-top: 3px; font-family: var(--font-product); font-size: 23px; font-weight: 740; letter-spacing: -.035em; }
.round-avatar { border: 0; border-radius: 50%; color: var(--ink); background: var(--surface); }
.mission-card { margin: 6px 14px 0; padding: 0; overflow: hidden; border: 0; border-radius: 24px; color: var(--ink); background: var(--surface); }
.mission-meta { min-height: 48px; padding: 0 18px; border: 0; }
.mission-meta::before { content: "오늘의 3초"; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0; }
.mission-copy { min-height: 190px; padding: 28px 18px; align-items: flex-end; }
.mission-copy h3 { max-width: 320px; font-size: clamp(30px,8.6vw,38px); font-weight: 760; line-height: 1.12; letter-spacing: -.05em; }
.capture-cta, .result-cta { width: calc(100% - 24px); min-height: 60px; margin: 0 12px 12px; padding: 0 16px; border-radius: 15px; color: #fff; background: var(--ink); }
.capture-cta small { color: rgba(255,255,255,.66); }
.record-dot { border: 0; background: var(--coral); }
.result-cta { background: var(--ink); }
.phone-shell[data-mode="experience"] .mission-card { height: auto; display: block; }
.phone-shell[data-mode="experience"] .mission-copy { min-height: 220px; }
.crew { padding: 24px 18px; }
.crew-head { padding-bottom: 12px; border: 0; }
.crew-head h3 { font-family: var(--font-product); font-size: 16px; font-weight: 700; }
.member-face { border: 2px solid #fff; outline: 1px solid var(--line); border-radius: 50%; }
.member.done .member-face { color: #fff; background: var(--ink) !important; }
.member.done .member-face::after { border-radius: 50%; }
.member-empty { border: 0; border-radius: 14px; background: var(--surface); }
.nav { border-top: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }
.nav button, .nav button.selected { color: #8a8a86; }
.nav button.selected { color: var(--ink); text-decoration: none; }

.permission-state { border: 0; border-radius: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.32); }
.permission-state strong, .review-sheet h2, .all-done h2 { font-family: var(--font-product); }
.permission-state button, .share-btn, .small-btn, .danger-btn, .plain-btn { border-radius: 12px; }
.review-sheet { border-radius: 24px 24px 0 0; }
.review-sheet h2, .all-done h2, .render-copy h2 { font-weight: 740; }
.waiting-number { border-radius: 18px; background: var(--ink); }
.waiting-number strong { font-family: var(--font-product); }
.progress-ring { border-radius: 50%; }
.next-mission { background: var(--surface); }
.reaction-picker { gap: 8px; border: 0; }
.reaction-picker button { border: 0; border-radius: 14px; background: var(--surface); }
.reaction-picker button.selected { background: #e8e8e5; box-shadow: inset 0 0 0 1px var(--ink); }
.reply-form { gap: 8px; }
.reply-form input { border: 0; border-radius: 13px; background: var(--surface); }
.reply-form button { border-radius: 13px; }
.share-preview { border-radius: 20px; }
.share-frame { border: 0; border-radius: 15px; }
.share .consent, .share .consent-details { border: 0; border-radius: 15px; background: var(--surface); }
.share .share-options { border: 0; }
.settings-body { gap: 0; padding: 4px 18px 30px; }
.settings-section { padding: 18px 0; border-color: var(--line); }
.settings-section h2 { font-size: 18px; font-weight: 700; }
.policy-links { border-color: var(--line); border-radius: 14px; }
.confirm-dialog { border-radius: 22px; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.dialog-icon { border-radius: 50%; background: var(--coral); }
.toast { border-radius: 12px; }

@media (max-width: 374px) {
  .intro { padding-right: 18px; padding-left: 18px; }
  .intro-copy h1 { font-size: 38px; }
  .mission-copy h3 { font-size: 29px; }
}

/* 2026-09-05: real-photo first screen */
.intro {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.intro-reel {
  position: absolute;
  z-index: -1;
  inset: 0 0 360px;
  display: block;
  height: auto;
  margin: 0;
  background: url("assets/samples/day-strip-v1.webp") 50% 29% / cover no-repeat;
}
.intro-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), transparent 30%, rgba(0,0,0,.06));
}
.intro-head {
  position: relative;
  z-index: 1;
}
.intro-head .brand,
.intro-head > span {
  color: #111;
  text-shadow: 0 1px 12px rgba(255,255,255,.7);
}
.intro-copy {
  margin: auto -20px 0;
  padding: 28px 20px 14px;
  background: #fff;
}
.intro-copy::before {
  margin-bottom: 10px;
}
.intro-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(36px,10vw,42px);
}
.intro .bottom-actions {
  margin: 0 -20px calc((var(--safe-bottom) + 18px) * -1);
  padding: 10px 20px calc(var(--safe-bottom) + 18px);
  background: #fff;
}

@media (max-height: 720px) {
  .intro-reel { inset-bottom: 324px; }
  .intro-copy { padding-top: 20px; }
  .intro-copy > p:last-child { font-size: 15px; }
  .intro .btn { min-height: 52px; }
}

/* Experience mode uses photographic samples; live mode still shows the device camera. */
.camera-bg.demo-room,
.review-demo.demo-room {
  background: #1b1b1b url("assets/samples/doorway-evening-v1.webp") 50% 50% / cover no-repeat;
}
.demo-room > * { display: none; }
.scene {
  background: #1b1b1b url("assets/samples/day-strip-v1.webp") 50% 50% / cover no-repeat;
}
.scene::before,
.scene::after { display: none; }
.share-frame-fallback {
  background: #1b1b1b url("assets/samples/day-strip-v1.webp") 50% 50% / cover no-repeat;
}
.share-frame-fallback > * { display: none; }
.screen.reveal {
  color: #fff;
  background: #0d0d0d;
}
