﻿  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body {
    height: 100%;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-feature-settings: "ss01", "ss02", "cv01";
    background: var(--bg);
    overflow: hidden;
    color: var(--ink-900);
  }
  /* Web launch: desktop gets a center column for the app + a brand sidebar.
     Mobile stays full-bleed. */
  .desktop-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background:
      radial-gradient(circle at 18% 18%, rgba(244,175,193,0.22), transparent 42%),
      radial-gradient(circle at 84% 76%, rgba(143,152,149,0.18), transparent 46%),
      var(--bg);
  }
  .web-side {
    display: none;
    max-width: 360px;
    padding: 0 24px;
  }
  .web-side h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink-900);
    margin-bottom: 16px;
    letter-spacing: 0;
  }
  .web-side h1 span {
    color: var(--coral-600);
  }
  .web-side p { font-size: 15px; color: #4D4D5A; line-height: 1.6; }
  .web-side ul { list-style: none; margin-top: 20px; padding: 0; }
  .web-side ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-900);
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .phone {
    width: 460px;
    height: min(900px, 100vh - 0px);
    max-height: 900px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(47, 52, 52, 0.16), 0 2px 6px rgba(47, 52, 52, 0.08);
    position: relative;
    overflow: hidden;
    padding-top: 44px;
  }
  .phone .hint {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 14px;
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: normal;
    z-index: 220;
  }
  .notch { display: none; }

  /* Real status bar — live clock + presence toggle + cute mascot animation. */
  .status-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-900);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
    cursor: default;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
  }
  .sb-time { font-variant-numeric: tabular-nums; letter-spacing: 0; }
  .sb-presence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F4F4F8;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .sb-presence:hover { background: var(--border); }
  .sb-presence:active { background: #E6E8EE; }
  .sb-dot {
    width: 8px; height: 8px; border-radius: 50%;
  }
  .sb-presence.online  .sb-dot { background: var(--mint-500); box-shadow: 0 0 8px rgba(34,197,94,.28); }
  .sb-presence.away    .sb-dot { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,.45); }
  .sb-presence.offline .sb-dot { background: var(--ink-500); }
  .sb-presence.busy    .sb-dot { background: #EC4899; box-shadow: 0 0 8px rgba(236,72,153,.3); }
  .sb-pet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
  }
  .sb-pet .sb-pet-emoji {
    width: 26px;
    height: 34px;
    display: inline-block;
    transform-origin: 50% 100%;
  }
  .sb-pet .blnyangi {
    display: block;
    filter: drop-shadow(0 3px 4px rgba(47,52,52,.16));
  }
  .sb-pet .sb-pet-heart {
    font-size: 11px;
    display: inline-block;
    color: #EC4899;
  }
  @keyframes sb-pet-heart {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 1; }
  }

  .blnyangi {
    overflow: visible;
    vertical-align: middle;
  }
  .blnyangi-img {
    display: inline-block;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 12px rgba(47,52,52,.14));
  }
  .hero-blnyangi {
    filter: drop-shadow(0 14px 18px rgba(0,0,0,.22));
  }
  .blnyangi-stripe,
  .blnyangi-tail-stripe {
    opacity: .95;
  }
  .blnyangi .blnyangi-accent {
    stroke: var(--rose-300);
  }
  .blnyangi .blnyangi-prop {
    fill: #DCD7F2;
    stroke: var(--ink-500);
    color: var(--coral-600);
  }
  .blnyangi .blnyangi-prop path,
  .blnyangi .blnyangi-prop circle {
    stroke: var(--coral-600);
    fill: none;
  }
  .blnyangi .blnyangi-bubble path {
    fill: var(--surface);
    stroke: var(--ink-700);
    stroke-width: 2.5;
  }
  .blnyangi .blnyangi-bubble circle,
  .blnyangi .blnyangi-spark path {
    fill: var(--rose-300);
  }
  .blnyangi .blnyangi-zzz text {
    fill: #8F9895;
    font: 900 18px/1 var(--font-sans, sans-serif);
  }
  .mascot-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .empty-mascot {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
    filter: drop-shadow(0 8px 12px rgba(47,52,52,.12));
  }

  /* Presence picker — small popover under the status-bar pill. */
  .presence-popover {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    padding: 8px;
    z-index: 60;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    animation: pop-in 0.15s ease-out;
  }
  .presence-popover::-webkit-scrollbar { display: none; }
  @keyframes pop-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  .presence-popover button {
    min-width: 78px;
    background: var(--surface);
    border: none;
    padding: 10px 12px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    color: var(--ink-900);
    box-shadow: inset 0 0 0 1px rgba(226,232,240,.72);
    transition: transform .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
  }
  .presence-popover button:hover { background: #F8FAFC; transform: translateY(-1px); }
  .presence-popover button.active {
    background: linear-gradient(135deg, #E0F2FE 0%, #ECFEFF 100%);
    color: var(--coral-500);
    box-shadow: inset 0 0 0 1px rgba(14,165,233,.18), 0 8px 18px rgba(14,165,233,.14);
  }
  .presence-popover button.online.active {
    background: linear-gradient(135deg, #DCFCE7 0%, #ECFDF5 100%);
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(34,197,94,.2), 0 8px 20px rgba(34,197,94,.16);
  }
  .presence-popover button.busy.active {
    background: linear-gradient(135deg, #FCE7F3 0%, #FFE4F1 100%);
    color: #BE185D;
    box-shadow: inset 0 0 0 1px rgba(236,72,153,.2), 0 8px 22px rgba(236,72,153,.2);
  }
  .presence-popover button.away.active {
    background: linear-gradient(135deg, #FEF3C7 0%, #FFF7ED 100%);
    color: #B45309;
    box-shadow: inset 0 0 0 1px rgba(245,158,11,.22), 0 8px 20px rgba(245,158,11,.15);
  }
  .presence-popover button.offline.active {
    background: linear-gradient(135deg, #F1F5F9 0%, #F8FAFC 100%);
    color: #475569;
    box-shadow: inset 0 0 0 1px rgba(148,163,184,.25), 0 8px 18px rgba(100,116,139,.12);
  }
  .presence-popover button.online .sb-dot {
    background: var(--mint-500) !important;
    box-shadow: 0 0 0 4px rgba(34,197,94,.13), 0 0 12px rgba(34,197,94,.7);
  }
  .presence-popover button.busy .sb-dot {
    background: #EC4899 !important;
    box-shadow: 0 0 0 4px rgba(236,72,153,.15), 0 0 14px rgba(236,72,153,.82);
  }
  .presence-popover button.away .sb-dot {
    background: #F59E0B !important;
    box-shadow: 0 0 0 4px rgba(245,158,11,.12), 0 0 10px rgba(245,158,11,.45);
  }
  .presence-popover button.offline .sb-dot {
    background: var(--ink-500) !important;
    box-shadow: none;
  }
  @media (min-width: 1024px) {
    .web-side { display: none; }
  }
  @media (max-width: 720px) {
    html, body, .desktop-wrap {
      min-height: 100%;
      min-height: 100dvh;
    }
    .desktop-wrap { padding: 0; }
    .phone {
      width: 100%;
      height: 100%;
      height: 100dvh;
      border-radius: 0;
      box-shadow: none;
      padding-top: calc(env(safe-area-inset-top, 0px) + 44px);
    }
    .status-bar {
      top: env(safe-area-inset-top, 0px);
      border-radius: 0;
    }
  }

  .screen-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .screen {
    position: absolute;
    inset: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    flex-direction: column;
  }
