    :root {
      --bg-cream: #FAF7F2;
      --card-bg: #FFFFFF;
      --text-main: #2D2A26;
      --text-sub: #7A756D;
      --text-muted: #A39D94;
      --brand-blue: #3B82F6;
      --brand-indigo: #2A3B5C;
      --accent-coral: #FF6B6B;
      --accent-yellow: #FFB800;
      --accent-purple: #8B5CF6;
      --tag-bg: #F3EFEA;
      --border-soft: #EFE9E1;
      --shadow-sm: 0 4px 12px rgba(140, 120, 100, 0.06);
      --shadow-md: 0 8px 24px rgba(140, 120, 100, 0.1);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
    body {
      background-color: #EFEBE4;
      font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
      color: var(--text-main);
      display: flex;
      justify-content: center;
      min-height: 100vh;
      padding: 0;
    }

    /* 모바일 프레임 컨테이너 */
    .app-frame {
      width: 100%;
      max-width: 440px;
      background: var(--bg-cream);
      min-height: 100vh;
      position: relative;
      display: flex;
      flex-direction: column;
      box-shadow: 0 0 40px rgba(0,0,0,0.12);
      padding-bottom: 84px; /* 하단 탭바 여백 */
    }

    /* 상단 탑바 */
    .top-app-bar {
      padding: 16px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--bg-cream);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 18px;
      font-weight: 900;
      color: var(--brand-indigo);
      letter-spacing: -0.02em;
    }

    .brand-ghost-flame {
      font-size: 22px;
      display: inline-block;
      animation: floatFlame 2s ease-in-out infinite alternate;
    }

    @keyframes floatFlame {
      0% { transform: translateY(0) scale(1); }
      100% { transform: translateY(-4px) scale(1.1); }
    }

    .top-user-greeting {
      font-size: 12px;
      color: var(--text-sub);
      font-weight: 600;
    }

    /* 스크롤 가능한 메인 바디 */
    .app-scroll-content {
      padding: 0 18px;
      flex: 1;
    }

    /* 캐릭터 인트로 배너 */
    .hero-character-box {
      background: #FFFFFF;
      border-radius: 24px;
      padding: 18px 20px;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-soft);
      position: relative;
      overflow: hidden;
    }

    .hero-thumb-wrap {
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: #E8F0FE;
      flex-shrink: 0;
      overflow: hidden;
      display: grid;
      place-items: center;
      border: 2px solid #D0E1FD;
      position: relative;
    }

    .hero-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-text-area h2 {
      font-size: 15px;
      font-weight: 900;
      color: var(--brand-indigo);
      margin-bottom: 4px;
    }

    .hero-text-area p {
      font-size: 12px;
      color: var(--text-sub);
      line-height: 1.45;
    }

    /* 2x2 메인 기능 카드 그리드 (도령 스타일) */
    .feature-grid-2x2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 14px;
    }

    .card-item {
      border-radius: 22px;
      padding: 18px 16px;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 180px;
      box-shadow: var(--shadow-sm);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
      position: relative;
      overflow: hidden;
      border: 1px solid transparent;
    }

    .card-item:active {
      transform: scale(0.97);
    }

    /* 카드별 파스텔 테마 */
    .card-theme-saju {
      background: #25334E;
      color: #FFFFFF;
    }
    .card-theme-newyear {
      background: #FFF1EE;
      border-color: #FEE0DA;
    }
    .card-theme-love {
      background: #FFF0F5;
      border-color: #FCE1EC;
    }
    .card-theme-gung {
      background: #EEF4FF;
      border-color: #DEE9FC;
    }

    .card-icon-area {
      font-size: 40px;
      margin-bottom: 8px;
    }

    .card-item h3 {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: -0.02em;
      margin-bottom: 4px;
    }

    .card-item p {
      font-size: 11.5px;
      opacity: 0.8;
      line-height: 1.35;
    }

    .card-badge-price {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 800;
      margin-top: 10px;
      padding: 4px 8px;
      border-radius: 8px;
      width: fit-content;
    }

    .card-theme-saju .card-badge-price {
      background: rgba(255, 255, 255, 0.15);
      color: #93C5FD;
    }
    .card-theme-newyear .card-badge-price {
      background: rgba(239, 68, 68, 0.1);
      color: #DC2626;
    }
    .card-theme-love .card-badge-price {
      background: rgba(236, 72, 153, 0.1);
      color: #DB2777;
    }
    .card-theme-gung .card-badge-price {
      background: rgba(59, 130, 246, 0.1);
      color: #2563EB;
    }

    /* 단독 와이드 배너 1: 고민상담 */
    .wide-pill-card {
      background: #F1F4FA;
      border: 1px solid #E2E8F0;
      border-radius: 18px;
      padding: 14px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
    }

    .wide-pill-card .info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .wide-pill-card .ico { font-size: 26px; }
    .wide-pill-card .title { font-size: 14px; font-weight: 900; color: var(--text-main); }
    .wide-pill-card .sub { font-size: 11px; color: var(--text-sub); }
    .wide-pill-card .price { font-size: 11.5px; font-weight: 800; color: var(--brand-blue); }

    /* 단독 와이드 배너 2: 귀인 지도 (대박 바이럴) */
    .banner-guiin-map {
      background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
      border-radius: 22px;
      padding: 18px 20px;
      color: #FFFFFF;
      margin-bottom: 12px;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .banner-guiin-map::before {
      content: '';
      position: absolute;
      top: -20px; right: -20px;
      width: 100px; height: 100px;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
      pointer-events: none;
    }

    .tag-free-gold {
      display: inline-block;
      padding: 3px 8px;
      background: #F59E0B;
      color: #000;
      font-size: 10.5px;
      font-weight: 900;
      border-radius: 6px;
      margin-bottom: 6px;
    }

    .banner-guiin-map h4 {
      font-size: 16px;
      font-weight: 900;
      margin-bottom: 2px;
    }

    .banner-guiin-map p {
      font-size: 11.5px;
      color: #94A3B8;
    }

    /* 오늘의 운세 배너 */
    .banner-today {
      background: #FFFFFF;
      border: 1px solid var(--border-soft);
      border-radius: 20px;
      padding: 16px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
    }

    /* 하단 탭바 (도령 스타일) */
    .bottom-tab-bar {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 440px;
      height: 68px;
      background: #FFFFFF;
      border-top: 1px solid var(--border-soft);
      display: flex;
      justify-content: space-around;
      align-items: center;
      z-index: 90;
      box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
    }

    .tab-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      padding: 6px 12px;
      border-radius: 12px;
      transition: all 0.2s;
    }

    .tab-btn .tab-ico { font-size: 20px; }
    .tab-btn.active { color: var(--brand-indigo); font-weight: 900; }

    /* 모달 팝업 & 바텀 시트 */
    .modal-sheet-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      z-index: 100;
      display: none;
      justify-content: center;
      align-items: flex-end;
    }

    .modal-sheet {
      width: 100%;
      max-width: 440px;
      background: #FFFFFF;
      border-radius: 28px 28px 0 0;
      padding: 24px 22px 36px;
      box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
      animation: sheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      max-height: 90vh;
      overflow-y: auto;
    }

    @keyframes sheetUp {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }

    .sheet-handle {
      width: 40px;
      height: 4px;
      background: #E2E8F0;
      border-radius: 2px;
      margin: 0 auto 16px;
    }

    .sheet-title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .sheet-title-row h3 {
      font-size: 18px;
      font-weight: 900;
      color: var(--text-main);
    }

    .btn-close-sheet {
      background: none;
      border: none;
      font-size: 24px;
      color: var(--text-muted);
      cursor: pointer;
    }

    /* 폼 스타일 */
    .cute-form-group {
      margin-bottom: 12px;
    }

    .cute-form-group label {
      display: block;
      font-size: 12px;
      font-weight: 800;
      color: var(--text-sub);
      margin-bottom: 6px;
    }

    .cute-input {
      width: 100%;
      height: 48px;
      border-radius: 14px;
      border: 1.5px solid var(--border-soft);
      padding: 0 16px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-main);
      background: #FAF8F5;
      outline: none;
      transition: all 0.2s;
    }

    .cute-input:focus {
      border-color: var(--brand-blue);
      background: #FFFFFF;
    }

    .cute-btn-submit {
      width: 100%;
      height: 52px;
      border-radius: 16px;
      background: var(--brand-indigo);
      color: #FFFFFF;
      font-size: 15px;
      font-weight: 900;
      border: none;
      cursor: pointer;
      margin-top: 10px;
      box-shadow: 0 6px 16px rgba(42, 59, 92, 0.25);
      transition: all 0.2s;
    }

    .cute-btn-submit:active { transform: scale(0.98); }

    /* 귀여운 결과 영수증 박스 */
    .cute-receipt {
      background: #FAF8F5;
      border: 1.5px dashed #D5CEC2;
      border-radius: 20px;
      padding: 20px 18px;
      margin: 16px 0;
      text-align: left;
    }

    .receipt-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 13px;
    }

    .receipt-row.bold {
      font-weight: 900;
      font-size: 14px;
      border-top: 1px dashed #D5CEC2;
      padding-top: 8px;
      margin-top: 8px;
    }

    /* 720 캔버스 래퍼 */
    .circle-canvas-box {
      width: 100%;
      max-width: 380px;
      margin: 10px auto;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    #cuteOrbitCanvas {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 1 / 1;
    }

    /* ── 세부 카테고리 리스트 섹션 ── */
    .content-section-title {
      font-size: 13.5px;
      font-weight: 800;
      color: var(--text-sub);
      margin: 18px 4px 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .menu-card-list {
      background: #FFFFFF;
      border: 1px solid var(--border-soft);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      margin-bottom: 14px;
    }

    .menu-card-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 16px;
      border-bottom: 1px solid #F5F1EB;
      cursor: pointer;
      transition: background 0.15s;
    }

    .menu-card-row:last-child {
      border-bottom: none;
    }

    .menu-card-row:active {
      background: #FAF7F2;
    }

    .menu-left-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .menu-avatar-thumb {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: #F3EFEA;
      display: grid;
      place-items: center;
      font-size: 19px;
      flex-shrink: 0;
    }

    .menu-text-wrap .row-title {
      font-size: 13.5px;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge-new-red {
      font-size: 9.5px;
      font-weight: 900;
      color: #EF4444;
      background: #FEE2E2;
      padding: 1px 5px;
      border-radius: 4px;
    }

    .menu-text-wrap .row-sub {
      font-size: 11px;
      color: var(--text-sub);
      margin-top: 2px;
    }

    .menu-arrow-ico {
      font-size: 14px;
      color: #CBD5E1;
      font-weight: 700;
    }

    /* 면접·시험 특별 카드 */
    .exam-highlight-card {
      background: #FFFDF7;
      border: 1.5px solid #FDE68A;
      border-radius: 18px;
      padding: 16px;
      margin-bottom: 14px;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
    }

    /* 채팅창 스타일 */
    .chat-bubble-wrap {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 280px;
      overflow-y: auto;
      padding: 10px 4px;
      margin-bottom: 12px;
    }
    .chat-bubble {
      max-width: 80%;
      padding: 12px 14px;
      border-radius: 16px;
      font-size: 13px;
      line-height: 1.5;
    }
    .chat-doryeong {
      align-self: flex-start;
      background: #F1F4FA;
      color: var(--text-main);
      border-bottom-left-radius: 4px;
    }
    .chat-user {
      align-self: flex-end;
      background: var(--brand-indigo);
      color: #fff;
      border-bottom-right-radius: 4px;
    }

    /* ══════════════════════════════════════════
       성능 고도화: GPU 가속, 파스텔 토스트, 사운드 토글
       ══════════════════════════════════════════ */
    .feature-card, .wide-pill-card, .cute-modal-box {
      transform: translateZ(0);
      will-change: transform;
      -webkit-font-smoothing: antialiased;
    }

    /* 초경량 파스텔 토스트 */
    .cute-toast {
      position: fixed;
      top: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(-20px);
      background: #2D2A26;
      color: #FFFDF8;
      padding: 12px 24px;
      border-radius: 30px;
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 8px 24px rgba(45, 42, 38, 0.25);
      z-index: 10000;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .cute-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }

    /* 상단 앱바 사운드 토글 버튼 */
    .cute-sound-btn {
      background: rgba(0, 0, 0, 0.05);
      border: 1px solid var(--border-soft);
      border-radius: 16px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 800;
      color: var(--text-main);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s;
    }
    .cute-sound-btn:hover {
      background: rgba(0, 0, 0, 0.08);
    }

  
/* ══════════════════════════════════════════
       리드어세상 벤치마킹: 정통 만세력 사주원국표 & 오행 밸런스 차트
       ══════════════════════════════════════════ */
    .saju-engine-dashboard {
      margin: 18px 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .saju-card-panel {
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      padding: 16px 14px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    .card-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .card-panel-title {
      font-size: 13.5px;
      font-weight: 900;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* 4기둥 원국표 그리드 */
    .pillars-table-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      text-align: center;
    }
    .pillar-col {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      padding: 10px 4px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      position: relative;
    }
    .pillar-col.is-me {
      background: rgba(245, 158, 11, 0.06);
      border-color: var(--gold);
      box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
    }
    .pillar-col-tag {
      font-size: 11px;
      font-weight: 800;
      color: var(--text-muted);
    }
    .pillar-col.is-me .pillar-col-tag {
      color: var(--gold-light);
    }
    
    .pillar-cell-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }
    .tengod-badge {
      font-size: 9.5px;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.08);
      color: #cbd5e1;
    }
    .pillar-col.is-me .tengod-badge.me-badge {
      background: var(--gold);
      color: #000;
      font-weight: 900;
    }
    .hanja-char {
      font-size: 26px;
      font-weight: 900;
      line-height: 1.1;
      font-family: serif;
    }
    .hanja-sub {
      font-size: 10.5px;
      color: var(--text-muted);
    }
    .wunsung-badge {
      font-size: 9.5px;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.3);
    }

    /* 오행 5색 클래스 */
    .color-wood  { color: #34d399 !important; }
    .color-fire  { color: #f87171 !important; }
    .color-earth { color: #fbbf24 !important; }
    .color-metal { color: #e2e8f0 !important; }
    .color-water { color: #38bdf8 !important; }
    .color-none  { color: #64748b !important; opacity: 0.6; }

    /* 오행 밸런스 바 */
    .elem-bars-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .elem-bar-item {
      display: grid;
      grid-template-columns: 62px 1fr 38px;
      align-items: center;
      gap: 8px;
      font-size: 11.5px;
      font-weight: 800;
    }
    .elem-track {
      height: 8px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }
    .elem-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .fill-wood  { background: linear-gradient(90deg, #059669, #34d399); }
    .fill-fire  { background: linear-gradient(90deg, #dc2626, #f87171); }
    .fill-earth { background: linear-gradient(90deg, #d97706, #fbbf24); }
    .fill-metal { background: linear-gradient(90deg, #64748b, #cbd5e1); }
    .fill-water { background: linear-gradient(90deg, #0284c7, #38bdf8); }

    .yongshin-card {
      margin-top: 10px;
      background: rgba(245, 158, 11, 0.08);
      border: 1px solid rgba(245, 158, 11, 0.3);
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 11.5px;
      color: #f1f5f9;
      line-height: 1.5;
    }

  
    /* 대운 타임라인 카드 */
    .daewoon-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(251,191,36,0.2);
      border-radius: 8px;
      padding: 8px 10px;
      min-width: 72px;
      text-align: center;
      transition: all .2s;
      cursor: default;
    }
    .daewoon-card.current-dw {
      border-color: #f59e0b;
      background: rgba(245,158,11,0.1);
      box-shadow: 0 0 12px rgba(245,158,11,0.3);
    }
    .daewoon-card .dw-age {
      font-size: 10px;
      color: #94a3b8;
      margin-bottom: 3px;
    }
    .daewoon-card.current-dw .dw-age { color: #fbbf24; font-weight: 700; }
    .daewoon-card .dw-gan { font-size: 18px; font-weight: 900; }
    .daewoon-card .dw-ji  { font-size: 18px; font-weight: 900; }
    .daewoon-card .dw-tg  { font-size: 9px; color: #64748b; margin-top: 3px; }
    .daewoon-card.current-dw .dw-tg { color: #f59e0b; }

    
    /* 지장간(地藏干) */
    .jijanggan-row {
      display: flex;
      gap: 3px;
      flex-wrap: wrap;
      margin-top: 4px;
      justify-content: center;
    }
    .jijanggan-pill {
      font-size: 9px;
      padding: 2px 5px;
      border-radius: 3px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      white-space: nowrap;
      line-height: 1.4;
    }
    .jijanggan-pill .jj-tg { color: #fbbf24; font-weight: 700; }
    .jijanggan-pill .jj-gan { font-weight: 700; }
    .jijanggan-pill .jj-label { color: #64748b; font-size: 8px; }

    
