/* ===== css/base.css ===== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  --status-h: 38px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

#phone {
  --wallpaper: url("../assets/wallpapers/wallpaper.jpg");
  --bg: #fff;
  --bg-grouped: #f2f2f7;
  --card: #fff;
  --fill: #e9e9eb;
  --nav: rgba(249, 249, 249, .88);
  --sheet: rgba(255, 255, 255, .92);
  --text: #000;
  --muted: #6c6c70;
  --line: rgba(60, 60, 67, .22);
  --blue: #007aff;
  --bubble-mine: #0a78f0;
  --status: #000;
}

#phone.on-wallpaper, #phone.overlay-dark { --status: #fff; }
#phone.overlay-dark #home-bar { display: none; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

html, body { height: 100%; margin: 0; overscroll-behavior: none; touch-action: manipulation; }

body {
  background: #000;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#phone {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
/* 상태 표시줄 뒤 배경을 아래 화면 색과 맞춘다 */
#phone:has(.app-grouped, .setup) { background: var(--bg-grouped); }

/* 넓은 화면에서는 휴대폰 비율로 높이를 꽉 채운다 */
@media (min-width: 481px) {
  #phone {
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 17;
  }
}

#statusbar {
  position: relative;
  z-index: 5;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--status-h) + var(--safe-top));
  padding: calc(2px + var(--safe-top)) 28px 0;
  color: var(--status);
  font-variant-numeric: tabular-nums;
}
#statusbar[hidden] { display: none; }
.status-time { font-size: 14px; font-weight: 600; line-height: 1.15; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons span { display: block; line-height: 0; }
.status-icons svg { display: block; width: 18px; height: 12px; }
.status-icons span:last-child svg { width: 26px; }

#screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.boot { margin: auto; padding: 32px; text-align: center; color: #6c6c70; font-size: 14px; }

/* 잠금·홈 화면에서는 배경화면이 상태바 뒤까지 이어짐 */
#phone.on-wallpaper { background: var(--wallpaper) center / cover no-repeat; }

#home-bar {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: var(--safe-bottom);
  transform: translateX(-50%);
  width: 170px;
  height: 22px;
}
#home-bar[hidden] { display: none; }
#home-bar::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 8px;
  height: 5px;
  border-radius: 3px;
  background: var(--status);
}

/* 장면 전환: 화면 꺼짐 */
#screen-off {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
#screen-off.on { opacity: 1; pointer-events: auto; }

/* 알림 배너 */
#banner-host {
  position: absolute;
  z-index: 10;
  top: calc(var(--status-h) + var(--safe-top));
  left: 14px;
  right: 14px;
  pointer-events: none;
}
.banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 18px;
  text-align: left;
  background: var(--sheet);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  pointer-events: auto;
  animation: banner-in .32s cubic-bezier(.2, .9, .3, 1.1);
}
.banner.leaving { opacity: 0; transform: translateY(-20px); transition: .22s; }
.banner img { flex: none; width: 30px; height: 30px; border-radius: 50%; }
.banner div { flex: 1; min-width: 0; }
.banner b { display: block; font-size: 12px; font-weight: 600; }
.banner span { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner time { flex: none; align-self: flex-start; font-size: 10px; color: var(--muted); }
/* 실제 폰 화면에서는 알림을 조금 더 도톰하게 */
@media (max-width: 480px) {
  .banner { gap: 11px; padding: 12px 14px; border-radius: 22px; }
  .banner img { width: 38px; height: 38px; }
  .banner b { font-size: 14px; }
  .banner span { margin-top: 1px; font-size: 14px; }
  .banner time { font-size: 11.5px; }
}

@keyframes banner-in { from { opacity: 0; transform: translateY(-24px); } }

/* 세로 화면 전용 */
#rotate-hint { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  #stage { display: none; }
  #rotate-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #000;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
  }
}

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

/* ===== css/screens.css ===== */
/* 시작 화면: 새 휴대폰 설정 */
.setup {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 20px calc(40px + var(--safe-bottom));
  background: var(--bg-grouped);
  overflow-y: auto;
}
.setup-head { text-align: center; }
.setup-icon { width: 60px; height: 60px; border-radius: 14px; }
.setup-head h1 { margin: 14px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.setup-form { margin-top: 28px; flex: 1; display: flex; flex-direction: column; }
.setup .ios-row { min-height: 46px; font-size: 15px; }
/* 아이폰은 입력칸 글씨가 16px보다 작으면 화면을 확대한다 */
.setup .ios-row input, .setup .ios-row select { height: 46px; font-size: 16px; }
.setup .ios-note { font-size: 12px; }
.setup .ios-button { height: 48px; font-size: 15px; }
.ios-group { border-radius: 12px; background: var(--card); overflow: hidden; }
.ios-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  font-size: 17px;
}
.ios-row + .ios-row { box-shadow: inset 0 1px 0 0 var(--line); }
.ios-row span { flex: none; }
.ios-row input, .ios-row select {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: none;
  font-size: 17px;
  text-align: right;
}
.ios-row input::placeholder { color: var(--muted); }
.ios-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  color: var(--muted);
  text-align-last: right;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='M1 1l5.5 5.5L1 12' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 8px 13px no-repeat;
}
.ios-row select option { color: #000; }
.ios-note { margin: 8px 16px 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.ios-error { margin: 8px 16px 0; font-size: 13px; font-weight: 500; color: #e0263c; }
.ios-button {
  margin-top: auto;
  height: 52px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  transition: opacity .1s;
}
.ios-button:active { opacity: .7; }

/* 잠금화면 */
.lock {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 12px calc(30px + var(--safe-bottom));
  color: #fff;
  cursor: pointer;
  animation: screen-on .5s ease-out;
}
@keyframes screen-on { from { opacity: 0; filter: brightness(.15); } }
.lock-date { text-align: center; font-size: 20px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .18); }
.lock-time {
  text-align: center;
  font-size: 92px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}
.lock-notis {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
}
.lock-noti {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 20px;
  text-align: left;
  color: var(--text);
  background: var(--sheet);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}
.lock-noti img { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.lock-noti-body { flex: 1; min-width: 0; }
.lock-noti-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.lock-noti-head time { flex: none; font-size: 11px; font-weight: 400; color: var(--muted); }
.lock-noti-text { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock-noti-count { margin-top: 1px; font-size: 11px; color: var(--muted); }
.lock-foot { flex: none; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.lock-round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.lock-round svg { display: block; width: 22px; height: 22px; }
.lock-hint { font-size: 14px; font-weight: 500; }

/* 홈 화면 */
.home { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 24px calc(26px + var(--safe-bottom)); animation: home-in .24s ease-out; }
@keyframes home-in { from { opacity: 0; transform: scale(1.04); } }
.home-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 0;
}
.app-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.app-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 11px;
  overflow: hidden;
  transition: transform .12s, filter .12s;
}
.app-icon:active .app-glyph { transform: scale(.92); filter: brightness(.82); }
.app-glyph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-badge[hidden] { display: none; }
.app-badge {
  position: absolute;
  top: -5px;
  left: calc(50% + 15px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 17px;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}
.home-dock {
  margin-top: auto;
  display: flex;
  justify-content: space-evenly;
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
}
.home-dock .app-label { display: none; }

/* 엔딩 화면 */
.ending {
  position: absolute;
  inset: calc(-1 * var(--status-h) - var(--safe-top)) 0 0;
  display: flex;
  flex-direction: column;
  padding: 0 28px calc(44px + var(--safe-bottom));
  background: #000;
  color: #fff;
}
@keyframes ending-in { from { opacity: 0; } }
.ending-main { margin: auto 0; text-align: center; animation: ending-in 1.2s ease-out; }
.ending-emoji { margin-bottom: 22px; font-size: 64px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ending-kicker { font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .6); }
.ending-main h1 { margin: 10px 0 0; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.ending .ios-button { margin-top: 0; flex: none; }

/* 키가 작은 휴대폰 */
@media (max-height: 700px) {
  .setup { padding: 20px 20px calc(24px + var(--safe-bottom)); }
  .setup-icon { width: 50px; height: 50px; }
  .setup-head h1 { margin-top: 10px; font-size: 22px; }
  .setup-form { margin-top: 20px; }
  .ios-button { margin-top: 20px; }
  .lock { padding-top: 6px; padding-bottom: calc(22px + var(--safe-bottom)); }
  .lock-date { font-size: 17px; }
  .lock-time { font-size: 68px; }
  .lock-round { width: 42px; height: 42px; }
  .home { padding-top: 6px; }
  .home-grid { margin-top: 16px; gap: 14px 0; }
  .home-dock { padding: 10px; }
}

/* 폭이 좁은 휴대폰 */
@media (max-width: 340px) {
  .home { padding-left: 14px; padding-right: 14px; }
  .app-glyph { width: 46px; height: 46px; }
  .app-icon { font-size: 10px; }
  .lock-time { font-size: 62px; }
}

/* ===== css/apps.css ===== */
/* 앱 공통 */
.app { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.nav-bar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
}
.nav-bar.bordered { border-bottom: .5px solid var(--line); background: var(--nav); }
.nav-back {
  position: absolute;
  left: 4px;
  top: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  color: var(--blue);
  font-size: 17px;
}
.nav-back svg { display: block; width: 12px; height: 21px; }
.nav-back:active { opacity: .5; }
.nav-title { font-size: 17px; font-weight: 600; }
.large-title { flex: none; margin: 0; padding: 2px 16px 8px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.app-empty { margin: auto; padding: 32px; text-align: center; color: var(--muted); font-size: 15px; }

.app-body { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 28px; }
.app-grouped { background: var(--bg-grouped); }
.ios-list { margin: 4px 0; }

/* 전화 앱 */
.call-row { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 16px; }
.call-row + .call-row::before { content: ""; position: absolute; top: 0; left: 63px; right: 0; border-top: .5px solid var(--line); }
.call-row > img { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.call-row-main { flex: 1; min-width: 0; }
.call-row-name { font-size: 15px; font-weight: 500; }
.call-row-name.missed { color: #ff3b30; }
.call-row-detail { margin-top: 1px; font-size: 12px; color: var(--muted); }
.call-row time { flex: none; font-size: 12px; color: var(--muted); }
.tab-bar { flex: none; display: flex; padding: 6px 0 calc(26px + var(--safe-bottom)); border-top: .5px solid var(--line); background: var(--nav); }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.tab-item.active { color: var(--blue); }
.tab-item span { display: block; line-height: 0; }
.tab-item svg { width: 26px; height: 26px; }

/* 통화 화면 */
#call-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: calc(clamp(58px, 10vh, 84px) + var(--safe-top)) 28px calc(clamp(28px, 6vh, 56px) + var(--safe-bottom));
  color: #fff;
  background: linear-gradient(180deg, #2b2b34 0%, #17151d 60%, #0d0c12 100%);
}
#call-layer[hidden] { display: none; }
.call-head { text-align: center; }
.call-avatar { width: 92px; height: 92px; border-radius: 50%; }
.ringing .call-avatar { animation: ring-pulse 1.3s ease-in-out infinite; }
@keyframes ring-pulse { 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, .14); } }
.call-name { margin-top: 14px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.call-status { margin-top: 4px; font-size: 17px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.call-actions { margin-top: auto; display: flex; justify-content: space-between; padding: 0 16px; }
.call-actions.single { justify-content: center; }
.call-action { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.call-round { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; }
.call-round span { display: block; line-height: 0; }
.call-round svg { width: 34px; height: 34px; }
.call-round.answer { background: #30d158; }
.call-round.decline { background: #ff3b30; }
.call-round.decline svg { transform: rotate(135deg); }
.call-round:active { filter: brightness(.8); }
.call-subtitle { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.call-who { font-size: 13px; color: rgba(255, 255, 255, .6); }
.call-line { font-size: 21px; font-weight: 500; line-height: 1.4; }
.call-line.mine { color: #8ec5ff; }
.call-options { flex: none; display: flex; flex-direction: column; gap: 8px; }
.call-option {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}
.call-option:active { background: rgba(255, 255, 255, .28); }

/* 인스타그램 */
.sns-bar { border-bottom: .5px solid var(--line); }
.sns-top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px; }
.sns-top-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.sns-top-btn:disabled { cursor: default; }
.sns-top-btn span { display: block; line-height: 0; }
.sns-top-btn svg { width: 28px; height: 28px; }
.sns-wordmark { display: flex; align-items: center; gap: 2px; white-space: nowrap; font-family: "Grand Hotel", cursive; font-size: 34px; line-height: 1; }
.sns-wordmark span { display: block; line-height: 0; }
.sns-wordmark svg { width: 16px; height: 16px; margin-top: 6px; }
.story-tray { display: flex; gap: 12px; padding: 8px 12px 12px; overflow-x: auto; }
.story-chip { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-ring { display: block; padding: 3px; border-radius: 50%; background: var(--line); }
.story-ring.unseen { background: linear-gradient(45deg, #ffd23c, #ff7a1a 30%, #e0348f 65%, #a42ee0); }
.story-ring img { display: block; width: 60px; height: 60px; border-radius: 50%; border: 2.5px solid var(--bg); }
.post { padding-bottom: 14px; }
.post-head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; font-size: 14px; }
.post-head img { width: 32px; height: 32px; border-radius: 50%; }
.post-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-carousel { position: relative; }
.post-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; cursor: pointer; }
.post-slides img { flex: none; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.post-count { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 500; }
.post-dots { position: absolute; left: 50%; top: 50%; display: flex; gap: 4px; transform: translate(-50%, -50%); }
.post-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.post-dots i.on { background: #0095f6; }
.post-actions { position: relative; display: flex; gap: 6px; padding: 4px 6px 0; }
.post-action { display: grid; place-items: center; width: 44px; height: 44px; }
.post-action span { display: block; line-height: 0; }
.post-action svg { width: 26px; height: 26px; }
.post-action:disabled { opacity: .35; cursor: default; }
.post-likes { padding: 0 14px; font-size: 14px; font-weight: 600; }
.post-comment { padding: 4px 14px 0; font-size: 14px; line-height: 1.35; }
.post-comment b { font-weight: 600; }
.post-time { display: block; padding: 6px 14px 0; font-size: 12px; color: var(--muted); }
.comment-picker { margin: 10px 14px 2px; display: flex; flex-direction: column; gap: 6px; }
.comment-option { min-height: 44px; padding: 10px 14px; border-radius: 12px; background: var(--fill); color: var(--blue); font-size: 15px; text-align: left; }
.sns-tabs { flex: none; display: flex; align-items: center; justify-content: space-around; padding: 6px 6px calc(26px + var(--safe-bottom)); border-top: .5px solid var(--line); background: var(--bg); }
.sns-tab { position: relative; display: grid; place-items: center; width: 62px; height: 44px; border-radius: 22px; color: var(--text); }
.sns-tab.active { background: var(--fill); }
.sns-tab:disabled { cursor: default; }
.sns-tab span { display: block; line-height: 0; }
.sns-tab svg { width: 26px; height: 26px; }
.sns-tab-avatar { display: block; width: 28px; height: 28px; border-radius: 50%; }
.story-ring { position: relative; }
.story-ring.none { background: none; }
.story-plus { position: absolute; right: -1px; bottom: -1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bg); background: var(--text); color: var(--bg); font-size: 15px; font-weight: 500; line-height: 1; }
.story-name { display: block; width: 100%; color: var(--text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-name.mine { color: var(--muted); }.post-menu { margin-left: auto; color: var(--text); }
.post-menu svg { display: block; width: 22px; height: 22px; }
.account-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; font-size: 15px; }
.account-row:active { background: var(--fill); }
.account-row img { flex: none; width: 50px; height: 50px; border-radius: 50%; }
.account-row b { font-weight: 600; }
.account-sub { margin-top: 1px; font-size: 13px; color: var(--muted); }
.account-me { margin-left: auto; padding: 3px 9px; border-radius: 10px; background: var(--fill); font-size: 12px; color: var(--muted); }
.profile-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px 0 6px; }
.profile-bar-btn { display: grid; place-items: center; width: 36px; height: 36px; color: var(--text); }
.profile-bar-btn span, .profile-bar-icons span, .profile-tabs span, .profile-btn span { display: block; line-height: 0; }
.profile-bar-btn svg { width: 24px; height: 24px; }
.profile-handle { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-bar-icons { display: flex; gap: 16px; color: var(--text); }
.profile-bar-icons svg { width: 23px; height: 23px; }
.profile-head { display: flex; align-items: center; gap: 18px; padding: 8px 16px 6px; }
.profile-avatar { flex: none; }
.profile-avatar img { width: 78px; height: 78px; }
.profile-avatar:disabled { cursor: default; }
.profile-side { flex: 1; min-width: 0; }
.profile-name { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.profile-stats { display: flex; justify-content: space-between; max-width: 220px; font-size: 13px; }
.profile-stats b { display: block; font-size: 17px; font-weight: 700; }
.profile-bio { padding: 4px 16px 12px; font-size: 13px; line-height: 1.4; }
.profile-actions { display: flex; gap: 6px; padding: 0 16px 14px; }
.profile-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; height: 32px; border-radius: 8px; background: var(--fill); font-size: 13px; font-weight: 600; }
.profile-btn.icon-only { flex: none; width: 36px; }
.profile-btn svg { width: 15px; height: 15px; }
.profile-btn.icon-only svg { width: 18px; height: 18px; }
.profile-tabs { display: flex; justify-content: space-around; padding: 8px 0; border-top: .5px solid var(--line); color: var(--muted); }
.profile-tabs svg { width: 24px; height: 24px; }
.profile-tabs .on { color: var(--text); }
.profile-grid button { position: relative; }
.grid-multi { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 2px; border: 2px solid #fff; box-shadow: 2px -2px 0 -0.5px #fff; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.profile-grid button { display: block; aspect-ratio: 1; overflow: hidden; }
.profile-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 전체화면 보기 */
.sns { position: relative; }
.story-viewer, .photo-viewer {
  position: absolute;
  inset: calc(-1 * var(--status-h) - var(--safe-top)) 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.story-bars { position: absolute; top: 58px; left: 10px; right: 10px; display: flex; gap: 4px; }
.story-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-bar.done i { width: 100%; }
.story-bar.now i { animation: story-fill 5s linear forwards; }
@keyframes story-fill { to { width: 100%; } }
.story-text.dark-top-right { left: auto; bottom: auto; text-align: right; font-size: 15px; color: #111; font-weight: 300; text-shadow: none; }
.story-head { position: absolute; top: 68px; left: 12px; right: 4px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.story-head b { font-weight: 500; }
.story-who { display: flex; align-items: center; gap: 8px; color: #fff; }
.story-head img { width: 32px; height: 32px; border-radius: 50%; }
.story-head time { font-size: 12px; font-weight: 300; opacity: .7; }
.story-close { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; }
.story-close span { display: block; line-height: 0; }
.story-close svg { width: 24px; height: 24px; }
.story-image { display: block; width: 100%; max-height: calc(100% - 130px); margin-top: 60px; object-fit: contain; }
.story-text { position: absolute; left: 20px; right: 20px; bottom: 110px; text-align: center; font-size: 17px; font-weight: 400; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* 사진첩 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.photo-grid button { display: block; aspect-ratio: 1; overflow: hidden; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-viewer img { display: block; width: 100%; max-height: 70%; object-fit: contain; }
.photo-close { position: absolute; top: 56px; right: 6px; }
.photo-caption { position: absolute; left: 20px; right: 20px; bottom: 44px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.photo-caption b { display: block; margin-bottom: 2px; color: #fff; font-size: 16px; font-weight: 600; }

/* 메모 */
.note-list { margin: 0 16px; border-radius: 12px; background: var(--card); overflow: hidden; }
.note-row { position: relative; display: block; width: 100%; padding: 9px 16px; text-align: left; }
.note-row + .note-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--line); }
.note-row:active { background: var(--fill); }
.note-title { font-size: 14px; font-weight: 600; }
.note-preview { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-preview span { color: var(--text); }
/* 메모 · 녹음은 큰 제목과 뒤로 가기도 조금 작게 */
.compact-app .large-title { font-size: 28px; }
.compact-app .nav-back { font-size: 15px; }

/* 블로그 앱 */
.blog { position: relative; background: #fff; }
.blog-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 18px; }
.blog-wordmark { display: flex; align-items: center; gap: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.blog-wordmark span, .blog-bar-icons span, .blog-tab span { display: block; line-height: 0; }
.blog-wordmark svg { width: 15px; height: 15px; margin-top: 4px; }
.blog-bar-icons { display: flex; gap: 20px; }
.blog-bar-icons svg { width: 23px; height: 23px; }
.blog-card { padding: 12px 18px 14px; border-bottom: .5px solid var(--line); }
.blog-author { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #444; }
.blog-author img { width: 30px; height: 30px; border-radius: 50%; }
.blog-card-text { display: block; width: 100%; margin-top: 10px; text-align: left; }
.blog-card-title { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.blog-card-preview { display: -webkit-box; margin-top: 6px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.5; color: #666; }
.blog-card-media { position: relative; margin-top: 12px; }
.blog-card-images { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; }
.blog-card-images button { flex: none; width: 92%; scroll-snap-align: start; }
.blog-card-images button:only-child { width: 100%; }
.blog-card-images img { display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.blog-card-count { position: absolute; top: 10px; right: calc(8% + 10px); min-width: 26px; padding: 3px 8px; border-radius: 13px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; text-align: center; }
.blog-card-time { margin-top: 10px; font-size: 12px; color: #888; }
.blog-card-actions { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; color: #333; }
.blog-card-actions svg { width: 22px; height: 22px; }
.blog-like { color: #ff4d6d; font-size: 15px; }
.blog-card-likes, .blog-card-comments { display: flex; align-items: center; gap: 5px; color: inherit; font-size: inherit; }
.blog-card-comments { margin-left: 10px; }
.blog-card-likes > span:first-child, .blog-card-comments > span:first-child { display: block; line-height: 0; }
.blog-more { margin-left: auto; font-size: 18px; letter-spacing: 1px; }
.blog-tabs { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 8px 6px calc(26px + var(--safe-bottom)); border-top: .5px solid var(--line); background: #f7f7f7; color: #222; }
.blog-tab { display: grid; place-items: center; width: 44px; height: 36px; }
.blog-tab svg { width: 25px; height: 25px; }
.blog-me { width: 26px; height: 26px; margin: 5px 9px; border-radius: 50%; background: #ffd1dc; }
.blog-post { padding: 6px 20px 40px; }
.blog-post-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px 0 4px; border-bottom: .5px solid var(--line); }
.blog-post-back { display: grid; place-items: center; width: 40px; height: 44px; color: var(--text); }
.blog-post-back span, .blog-post-title span, .blog-post-actions span { display: block; line-height: 0; }
.blog-post-back svg { width: 12px; height: 21px; }
.blog-post-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.blog-post-title svg { width: 22px; height: 22px; }
.blog-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 20px 28px; background: #333 center / cover no-repeat; color: #fff; text-align: center; }
.blog-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.blog-hero > * { position: relative; }
.blog-hero-category { font-size: 12px; opacity: .9; }
.blog-hero h1 { margin: 8px 0 0; font-size: 24px; font-weight: 400; line-height: 1.35; }
.blog-hero-avatar { width: 44px; height: 44px; margin-top: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); object-fit: cover; }
.blog-hero-name { margin-top: 8px; font-size: 14px; }
.blog-hero-time { margin-top: 2px; font-size: 12px; opacity: .85; }
.blog-hero-follow { margin-top: 12px; padding: 5px 22px; border: 1px solid #fff; font-size: 13px; }
.blog-post-actions { flex: none; display: flex; gap: 22px; padding: 10px 20px calc(26px + var(--safe-bottom)); border-top: .5px solid var(--line); background: #fff; color: var(--text); }
.blog-post-actions svg { width: 24px; height: 24px; }
.blog-post-actions button { display: block; line-height: 0; color: inherit; }
/* 댓글 창 */
.blog-sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.blog-sheet-dim { position: absolute; inset: 0; width: 100%; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; }
.blog-sheet { position: relative; display: flex; flex-direction: column; height: 92%; border-radius: 18px 18px 0 0; background: #fff; transform: translateY(100%); transition: transform .22s ease-out; }
.blog-sheet-wrap.open .blog-sheet-dim { opacity: 1; }
.blog-sheet-wrap.open .blog-sheet { transform: none; }
.blog-sheet-handle { flex: none; display: block; width: 100%; height: 22px; }
.blog-sheet-handle::before { content: ""; display: block; width: 46px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: #ddd; }
.blog-sheet-head { flex: none; padding: 12px 22px 16px; border-bottom: 1px solid #e5e5e5; font-size: 17px; font-weight: 700; }
.blog-sheet-head b { color: #03c75a; }
.blog-sheet-list { flex: 1; min-height: 0; overflow-y: auto; }
.blog-comment { display: flex; gap: 11px; padding: 16px 18px 14px; border-bottom: 1px solid #eee; }
.blog-comment-avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #eee; color: #555; font-size: 12px; font-weight: 600; object-fit: cover; }
.blog-comment-me { border: 0; background: #ffd1dc; }
.blog-comment-main { flex: 1; min-width: 0; }
.blog-comment-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.blog-comment-top b { font-size: 13px; font-weight: 700; }
.blog-comment-more { line-height: 0; color: #999; }
.blog-comment-more svg { width: 15px; height: 15px; }
.blog-comment-main p { margin: 0; font-size: 13px; line-height: 1.5; color: #222; }
.blog-comment-time { margin-top: 4px; font-size: 11px; color: #999; }
.blog-comment-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.blog-comment-reply { padding: 3px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 11px; color: #999; }
.blog-comment-like { display: flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; color: #555; }
.blog-comment-like > span:first-child { display: block; line-height: 0; }
.blog-comment-like svg { width: 14px; height: 14px; }
.blog-sheet-input { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px calc(8px + var(--safe-bottom)) 22px; border-top: 1px solid #ddd; }
.blog-sheet-placeholder { flex: 1; font-size: 13px; color: #aaa; }
.blog-sheet-submit { padding: 9px 17px; border-radius: 4px; background: #a8a8a8; color: #fff; font-size: 13px; font-weight: 600; }
.blog-post h1 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.blog-post-date { padding-bottom: 14px; border-bottom: .5px solid var(--line); font-size: 12px; color: var(--muted); }
.blog-block { margin-top: 22px; }
.blog-post img { display: block; width: 100%; border-radius: 4px; }
.blog-post p { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 300; line-height: 1.7; white-space: pre-wrap; }

/* 녹음 앱 */
.rec-list { margin: 0 16px; border-radius: 12px; background: var(--card); overflow: hidden; }
.rec-row { position: relative; }
.rec-row + .rec-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--line); }
.rec-head { display: block; width: 100%; padding: 9px 16px; text-align: left; }
.rec-head:active { background: var(--fill); }
.rec-title { font-size: 14px; font-weight: 600; }
.rec-meta { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-player { padding: 0 16px 12px; }
.rec-track { height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.rec-fill { width: 0; height: 100%; background: var(--text); }
.rec-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-play { position: relative; display: block; width: 44px; height: 44px; margin: 4px auto 0; }
.rec-play::before { content: ""; position: absolute; top: 11px; left: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--text); }
.rec-play.on::before { top: 11px; left: 13px; width: 6px; height: 22px; border: 0; background: var(--text); box-shadow: 12px 0 0 var(--text); }
.note-body { padding: 4px 20px 40px; }
.note-date { text-align: center; font-size: 12px; color: var(--muted); }
.note-body h1 { margin: 12px 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.note-body p { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.55; white-space: pre-wrap; }

/* 설정 */
.settings { padding: 0 16px 40px; }
.settings-section { margin-top: 22px; }
.settings-section:first-child { margin-top: 4px; }
.settings-section h2 { margin: 0 16px 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.row-value { margin-left: auto; color: var(--muted); }
.settings-note { margin: 8px 16px 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.segmented { display: flex; gap: 2px; padding: 3px; background: var(--fill); }
.segmented button { flex: 1; height: 36px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.segmented button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-weight: 600; }
.danger-row { width: 100%; justify-content: center; color: #ff3b30; }

/* 확인 창 */
.alert-backdrop { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 40px; background: rgba(0, 0, 0, .35); }
.alert { width: 100%; max-width: 280px; border-radius: 14px; background: var(--card); overflow: hidden; text-align: center; animation: alert-in .18s ease-out; }
@keyframes alert-in { from { opacity: 0; transform: scale(1.08); } }
.alert-text { padding: 18px 16px; }
.alert-text b { font-size: 17px; font-weight: 600; }
.alert-text p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; }
.alert-actions { display: flex; border-top: .5px solid var(--line); }
.alert-actions button { flex: 1; height: 44px; color: var(--blue); font-size: 17px; }
.alert-actions button + button { border-left: .5px solid var(--line); }
.alert-actions .strong { font-weight: 600; }
.alert-actions .destructive { color: #ff3b30; font-weight: 600; }

/* ===== css/messenger.css ===== */
/* 메신저 (카카오톡 느낌) */
#phone {
  --chat-bg: #b2c7da;
  --chat-in: #fff;
  --chat-time: #4d5b68;
  --chat-name: #3c4853;
  --chat-pill: rgba(60, 80, 100, .35);
}
#phone.in-chat { background: var(--chat-bg); }

/* 대화 목록 */
.chat-list-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.chat-list-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.chat-head-icons { display: flex; gap: 16px; color: var(--text); }
.chat-head-icons span { display: block; line-height: 0; }
.chat-head-icons svg { width: 22px; height: 22px; }
.chat-chips { flex: none; display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; }
.chat-chip { flex: none; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 13px; border-radius: 15px; background: #f1f1f1; color: #555; font-size: 13px; font-weight: 600; }
.chat-chip.on { background: #191919; color: #fff; }
.chat-chip:disabled { cursor: default; }
.chip-badge { min-width: 14px; height: 14px; padding: 0 4px; border-radius: 7px; background: #fa4a3f; color: #fff; font-size: 9px; font-weight: 700; line-height: 14px; text-align: center; }
.thread-list { flex: 1; overflow-y: auto; padding-bottom: 28px; }
.thread-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 16px; text-align: left; }
button.thread-row:active { background: var(--fill); }
.thread-row > img { flex: none; width: 38px; height: 38px; border-radius: 14px; }
.chat-tabs { flex: none; display: flex; justify-content: space-around; padding: 8px 6px calc(26px + var(--safe-bottom)); background: var(--bg); color: #b6b9bd; }
.chat-tabs span { display: block; line-height: 0; }
.chat-tabs svg { width: 27px; height: 27px; }
.chat-tabs .on { color: #2c3035; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-title small { margin-left: 5px; font-size: 12px; font-weight: 400; color: var(--muted); }
.thread-preview { margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 10px; color: var(--muted); }
.unread-badge { min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: #fa4a3f; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }

/* 대화방 */
.chat-room { background: var(--chat-bg); }
.chat-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 14px 6px 4px; }
.chat-head h1 { margin: 0; flex: 1; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-back { flex: none; display: grid; place-items: center; width: 42px; height: 44px; color: var(--text); }
.chat-back span, .chat-head-tools span { display: block; line-height: 0; }
.chat-back svg { width: 24px; height: 24px; }
.chat-head-tools { flex: none; display: flex; gap: 18px; color: var(--text); }
.chat-head-tools svg { width: 22px; height: 22px; }
.chat-head small { margin-left: 5px; font-size: 13px; font-weight: 400; color: var(--chat-name); }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 4px 10px 12px; }
.date-divider { align-self: center; margin: 12px 0 6px; padding: 4px 12px; border-radius: 999px; background: var(--chat-pill); color: #fff; font-size: 11px; }
.msg { display: flex; align-items: flex-start; gap: 7px; max-width: 100%; margin-top: 4px; }
.msg.first { margin-top: 12px; }
.msg.mine { justify-content: flex-end; }
.msg.fresh { animation: msg-in .18s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg-avatar { flex: none; width: 32px; height: 32px; border-radius: 12px; }
.msg-avatar-gap { flex: none; width: 32px; }
.msg-body { flex: 1; min-width: 0; }
.msg-name { margin: 0 0 4px; font-size: 11px; color: var(--chat-name); }
.msg-line { display: flex; align-items: flex-end; gap: 5px; }
.msg.mine .msg-line { flex-direction: row-reverse; }
.bubble {
  max-width: 72%;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--chat-in);
  font-size: 13px;
  line-height: 1.36;
  white-space: pre-wrap;
}
.msg.first:not(.mine) .bubble { border-top-left-radius: 3px; }
.msg.mine .bubble { background: #fee500; color: #191919; }
.msg.mine.first .bubble { border-top-right-radius: 3px; }
img.bubble { display: block; width: 170px; padding: 0; object-fit: cover; }
/* 실제 폰 화면에서는 말풍선을 조금 더 도톰하게 */
@media (max-width: 480px) {
  .bubble { padding: 8px 12px; font-size: 14.5px; line-height: 1.4; border-radius: 14px; }
  .msg-name { font-size: 12px; }
  img.bubble { width: 190px; padding: 0; }
}
.msg-meta { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.msg.mine .msg-meta { align-items: flex-end; }
.msg-unread { font-size: 10px; font-weight: 700; line-height: 1; color: #f5c400; }
.msg-time { flex: none; font-size: 10px; color: var(--chat-time); white-space: nowrap; }
.typing { color: var(--muted); font-size: 13px; animation: typing-pulse 1.1s ease-in-out infinite; }
@keyframes typing-pulse { 50% { opacity: .45; } }

.chat-footer { flex: none; padding: 6px 10px calc(26px + var(--safe-bottom)); background: var(--chat-bg); }
.chat-input { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 22px; background: rgba(255, 255, 255, .78); }
.chat-round { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1f1f1f; transition: background .15s, color .15s; }
.chat-round span { display: block; line-height: 0; }
.chat-round svg { width: 17px; height: 17px; }
.chat-round.emoji { width: 26px; height: 26px; background: #d6d8da; }
.chat-round.emoji svg { width: 16px; height: 16px; }
.chat-round.hash .icon-send, .chat-round.hash.sending .icon-hash { display: none; }
.chat-round.hash.sending { background: #4a3f3f; color: #fff; }
.chat-round.hash.sending .icon-send { display: block; }
.chat-field { flex: 1; min-width: 0; padding: 0 4px; color: #9a9da1; font-size: 13px; font-weight: 300; }
.chat-text { flex: 1; min-width: 0; height: 30px; padding: 0 4px; border: 0; background: none; font-size: 16px; }
.chat-text::placeholder { color: #9a9da1; font-size: 13px; font-weight: 300; }
.chat-text:focus { outline: 0; }
.choice-list { display: flex; flex-direction: column; gap: 5px; }
.choice-btn {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--fill);
  text-align: left;
  font-size: 14px;
  line-height: 1.32;
}
.choice-btn:active { background: #fee500; color: #191919; }
/* 실제 폰 화면에서는 입력창과 선택지도 조금 더 도톰하게 */
@media (max-width: 480px) {
  .chat-footer { padding-top: 8px; }
  .chat-input { gap: 8px; padding: 5px; border-radius: 26px; }
  .chat-round { width: 36px; height: 36px; }
  .chat-round svg { width: 20px; height: 20px; }
  .chat-round.emoji { width: 31px; height: 31px; }
  .chat-round.emoji svg { width: 19px; height: 19px; }
  .chat-field, .chat-text::placeholder { font-size: 15px; }
  .chat-text { height: 36px; }
  .choice-list { gap: 7px; }
  .choice-btn { min-height: 44px; padding: 11px 15px; border-radius: 12px; font-size: 15px; }
}
