    html {
      font-size: 62.5%;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg: #EEEEEE;
      --surface: #ffffff;
      --border: #e4e2dc;
      --text-primary: #000000;
      --text-secondary: #68635F;
      --text-muted: #787370;
      --accent: #25198F;
      --accent-light: #D9E7FF;
      --danger: #FF4A32;
      --terms-badge-bg: #4130DF;
      --radius: 10px;
      --shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
      --nav-height: 64px;
      --top-nav-height: 54px;
      --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      --font-hanja: 'Noto Sans KR', sans-serif;
    }

    /* ── 유틸리티 클래스 ── */
    .flex-center {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }

    body {
      font-family: var(--font-main);
      background: var(--bg);
      color: var(--text-primary);
      font-size: 1.6rem;
      min-height: 100vh;
      padding-bottom: calc(var(--nav-height) + 30px);
    }

    /* ── PC 전환 ── */
    @media (min-width: 1024px) {
      body {
        padding-bottom: 24px;
        padding-top: calc(var(--top-nav-height) + 8px);
      }

      #top-nav {
        display: flex !important;
      }

      #bottom-nav-wrap {
        display: none !important;
      }

      .view {
        padding-top: 20px;
      }
    }

    /* ── 콘텐츠 래퍼 (네비게이션 제외) ── */
    #content-wrap {
      min-width: 360px;
      max-width: 720px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
    }

    /* ── 뷰 전환 ── */
    .view {
      display: none;
      padding: 0 16px 0;
    }

    .view.active {
      display: block;
    }

    /* 홈은 컨테이너가 패딩 직접 관리 */
    #view-home {
      padding-left: 0;
      padding-right: 0;
    }

    #view-home .container {
      padding: 0 10px;
    }

    /* ── 공통 헤더 ── */
    header {
      text-align: center;
      margin-bottom: 24px;
    }

    header h1 {
      font-size: 1.76rem;
      font-weight: 400;
      letter-spacing: 0.08em;
      color: var(--text-secondary);
    }

    /* ── 홈 화면 서비스명 ── */
    .home-service-title {
      text-align: center;
      font-weight: 500;
      font-size: 3.6rem; /* 모든 화면 크기에서 36px 고정 */
      color: #000000;
      letter-spacing: -0.02em;
      line-height: 1.3;
      padding: 30px 16px 0;
    }

    @media (min-width: 1024px) {
      .home-service-title {
        padding: 40px 16px 0;
      }
    }

    .container {
      margin: 0 auto;
    }

    /* ── 홈: 시계 ── */
    .home-clock {
      text-align: center;
      padding: 20px 0 12px;
    }

    .home-clock-date {
      font-size: 1.8rem;
      font-weight: 300;
      color: #000000;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }

    .home-clock-time {
      font-size: 4.8rem;
      font-weight: 300;
      letter-spacing: 0.02em;
      color: #000000;
      line-height: 1.15;
    }

    @keyframes clockBlink {

      0%,
      49% {
        opacity: 1
      }

      50%,
      100% {
        opacity: 0
      }
    }

    .clock-colon {
      display: inline-block;
      animation: clockBlink 1s step-end infinite;
    }

    .home-clock-si {
      font-size: 1.8rem;
      font-weight: 300;
      color: #68635F;
      margin-top: 4px;
      letter-spacing: -0.01em;
    }

    .home-clock-si .si-hanja {
      font-family: var(--font-hanja);
      font-weight: 400;
    }

    @media (min-width: 1024px) {
      .home-clock {
        padding: 8px 0 4px;
      }

      .home-clock-date {
        font-size: 2rem;
        margin-bottom: 8px;
      }

      .home-clock-time {
        font-size: 6rem;
      }

      .home-clock-si {
        font-size: 2rem;
        margin-top: 4px;
      }
    }

    /* ── 홈: 사주 박스 (오행 배경색 박스) ── */
    .home-saju-area {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      padding: 10px 10px 20px;
      width: 340px;
      margin: 0 auto;
    }

    .home-pillar {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 16px 0 12px;
      text-align: center;
    }

    /* ── 홈: 현재 사주 섹션 레이블 (카드 외부) ── */
    .home-saju-section-label {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 16px 10px;
      font-size: 2.0rem;
      font-weight: 500;
      color: #787878;
      letter-spacing: -0.01em;
    }

    .home-pillar-label {
      font-size: 1.8rem;
      font-weight: 600;
      color: #68635F;
      letter-spacing: 0;
      margin-bottom: 8px;
    }

    .home-pillar-box {
      width: 100%;
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-hanja);
      font-size: 3.6rem;
      font-weight: 500;
      border-radius: 20px;
      margin-bottom: 8px;
      line-height: 1;
    }

    .home-pillar-name {
      font-size: 1.8rem;
      font-weight: 400;
      color: #68635F;
      margin-top: 4px;
      letter-spacing: 0;
    }

    /* ── 홈: 로딩/에러 ── */
    .home-loading {
      text-align: center;
      padding: 48px 20px;
      color: var(--text-muted);
      font-size: 1.36rem;
    }

    /* ── 공통 카드 ── */
    .section-card {
      background: var(--surface);
      border: none;
      border-radius: var(--radius);
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07), 0 2px 14px rgba(0, 0, 0, 0.04);
      overflow: hidden;
      margin-bottom: 10px;
    }

    .section-title {
      padding: 10px 16px;
      font-size: 1.2rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    /* ── 사주 4주 박스 ── */
    .saju-table {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      column-gap: 10px;
      row-gap: 0;
      padding: 30px 10px 20px;
      width: 340px;
      margin: 0 auto;
    }

    .pillar {
      padding: 10px 0 20px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .pillar-label {
      font-size: 1.088rem;
      color: var(--text-muted);
      letter-spacing: 0.06em;
      margin-bottom: 6px;
    }

    .pillar-sipsung {
      font-size: 0.992rem;
      color: var(--text-muted);
      letter-spacing: 0.03em;
      margin-bottom: 4px;
    }

    .pillar-sipsung-b {
      margin-top: 4px;
      margin-bottom: 2px;
    }

    .pillar-hanja {
      font-family: var(--font-hanja);
      font-size: 2.4rem;
      font-weight: 300;
      line-height: 1.4;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .pillar-nabeun {
      margin-bottom: 4px;
    }

    .pillar-nabeun .nabeun-btn {
      font-size: 1.4rem;
      padding: 2px 6px;
      margin-bottom: 0;
    }

    .pillar-hangul {
      margin-top: 0;
      margin-bottom: 6px;
      font-size: 1.8rem;
      font-weight: 400;
      color: #000;
    }

    .pillar-label-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-bottom: 1px solid var(--border);
      margin-bottom: 0;
      grid-column: 1/-1;
    }

    .pillar-label-row .pillar-label-btn {
      border-radius: 0;
    }

    /* ── 대운/세운 공통 ── */
    .yunwoon-grid {
      display: grid;
      grid-template-columns: repeat(10, minmax(68px, 1fr));
      overflow-x: auto;
    }

    /* 홈 세운: 10개 가로 스크롤 (모바일/PC 공통) */
    #home-saewoon-grid {
      grid-template-columns: repeat(10, minmax(68px, 1fr));
      overflow-x: auto;
      transition: opacity 0.2s ease;
    }

    #home-saewoon-grid.loading-state {
      opacity: 0.5;
      pointer-events: none;
    }

    #home-saewoon-grid .yunwoon-age {
      font-size: 1.5rem;
      font-weight: 500;
    }

    #home-saewoon-grid .yunwoon-hanja {
      font-size: 2.8rem;
      font-weight: 400;
      color: #68635F;
    }

    .yunwoon-item {
      padding: 14px 4px;
      text-align: center;
      border-right: 1px solid var(--border);
      min-width: 0;
    }

    .yunwoon-item:last-child {
      border-right: none;
    }

    .yunwoon-age {
      font-size: 1.5rem;
      color: var(--text-secondary);
      margin-bottom: 6px;
      font-weight: 500;
    }

    .yunwoon-hanja {
      font-size: 2.8rem;
      font-weight: 400;
      line-height: 1.3;
      color: #68635F;
    }

    .yunwoon-hangul {
      margin-top: 5px;
      font-size: 1.5rem;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .yunwoon-item.current-year {
      background: var(--accent-light);
    }

    .yunwoon-item.current-year .yunwoon-age {
      color: var(--accent);
      font-weight: 600;
    }

    .yunwoon-item.current-year .yunwoon-hanja {
      color: var(--accent);
    }

    .yunwoon-item.current-year .yunwoon-hangul {
      color: var(--accent);
    }

    .yunwoon-item.clickable {
      cursor: pointer;
    }

    .yunwoon-item.clickable:hover {
      background: var(--accent-light);
    }

    /* 선택된 대운 */
    .yunwoon-item.dw-active {
      background: var(--accent-light);
      border-bottom: 2px solid var(--accent);
    }

    .yunwoon-item.dw-active .yunwoon-age {
      color: var(--accent);
      font-weight: 600;
    }

    /* 선택된 세운 */
    .yunwoon-item.sw-selected {
      background: var(--accent-light);
      border-bottom: 2px solid var(--accent);
    }

    .yunwoon-item.sw-selected .yunwoon-age {
      color: var(--accent);
      font-weight: 600;
    }

    /* 월운 그리드: 12칸 */
    .wolwoon-grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(68px, 1fr));
      overflow-x: auto;
    }

    .badge-forward {
      font-size: 1.088rem;
      color: var(--accent);
      background: var(--accent-light);
      border-radius: 20px;
      padding: 2px 8px;
      font-weight: 400;
      letter-spacing: 0;
    }

    .badge-sub {
      font-size: 1.088rem;
      color: var(--text-muted);
      font-weight: 400;
      letter-spacing: 0;
    }

    .badge-terms {
      font-size: 1.5rem;
      font-weight: 400;
      color: #25198F;
      background: #D9E7FF;
      border-radius: 20px;
      padding: 1px 8px;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ── 명식 입력 화면 ── */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 32px;
      box-shadow: var(--shadow);
    }

    .form-section {
      margin-bottom: 24px;
    }

    .section-label {
      font-size: 1.6rem;
      font-weight: 500;
      letter-spacing: 0;
      text-transform: none;
      color: var(--text-primary);
      margin-bottom: 10px;
    }

    .row {
      display: flex;
      gap: 10px;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 5px;
      flex: 1;
    }

    label {
      font-size: 1.4rem;
      color: var(--text-secondary);
    }

    input {
      font-size: 1.44rem;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 9px 11px;
      background: #EEEEEE;
      color: var(--text-primary);
      width: 100%;
      transition: border-color 0.15s;
      outline: none;
    }

    select {
      font-size: 1.44rem;
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 9px 34px 9px 11px;
      background: #EEEEEE;
      color: var(--text-primary);
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 14px;
      transition: border-color 0.15s;
      outline: none;
      cursor: pointer;
    }

    input:focus,
    select:focus {
      border-color: var(--accent);
    }

    .gender-group {
      display: flex;
      gap: 8px;
    }

    .gender-btn {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 9px;
      border: 1px solid #D5D5D5;
      border-radius: 5px;
      cursor: pointer;
      font-size: 1.6rem;
      font-weight: 500;
      color: var(--text-secondary);
      background: #FFFFFF;
      transition: all 0.15s;
      user-select: none;
    }

    .gender-btn input[type="radio"] {
      display: none;
    }

    #btn-male.selected {
      background: #75A8EB;
      color: #fff;
      font-weight: 500;
    }

    #btn-female.selected {
      background: #FF6262;
      color: #fff;
      font-weight: 500;
    }

    .checkbox-row {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      user-select: none;
    }

    .checkbox-row input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    .checkbox-row span {
      font-size: 1.6rem;
      color: var(--text-secondary);
    }

    .toggle-row {
      display: flex;
      gap: 6px;
    }

    .toggle-btn {
      flex: 1;
      padding: 8px;
      border: 1px solid #D5D5D5;
      border-radius: 5px;
      background: #FFFFFF;
      font-size: 1.6rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
      text-align: center;
    }

    .toggle-btn.active {
      border-color: #25198F;
      background: #D9E7FF;
      color: #25198F;
      font-weight: 500;
    }

    .leap-row {
      margin-top: 13px;
      display: none;
    }

    .divider {
      height: 1px;
      background: var(--border);
      margin: 24px 0;
    }

    .btn-primary {
      width: 100%;
      padding: 13px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      font-size: 1.6rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      cursor: pointer;
      margin-top: 28px;
      transition: opacity 0.15s;
    }

    .btn-primary:hover {
      opacity: 0.88;
    }

    .btn-primary:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .btn-reset {
      width: 100%;
      padding: 11px;
      background: #FFFFFF;
      color: var(--text-secondary);
      border: 1px solid #D5D5D5;
      border-radius: var(--radius);
      font-size: 1.6rem;
      font-weight: 500;
      cursor: pointer;
      margin-top: 8px;
      transition: all 0.15s;
    }

    .btn-reset:hover {
      border-color: var(--text-secondary);
      color: var(--text-primary);
    }

    .error-box {
      background: #fef2f2;
      border: 1px solid #fecaca;
      border-radius: var(--radius);
      padding: 14px 16px;
      font-size: 1.32rem;
      color: var(--danger);
      margin-top: 16px;
      display: none;
    }

    .input-error {
      background: #fef2f2 !important;
      border-color: #ef4444 !important;
    }

    /* ── 토스트 ── */
    #toast-container {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      pointer-events: none;
      width: 90%;
      max-width: 360px;
    }

    .toast {
      background: rgba(40, 40, 40, 0.92);
      color: #fff;
      padding: 12px 18px;
      border-radius: 8px;
      font-size: 1.4rem;
      width: 100%;
      text-align: center;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.25s, transform 0.25s;
    }

    .saju-card {
      min-width: 340px;
      max-width: 720px;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .result-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-top: 20px;
      box-shadow: var(--shadow);
      overflow: hidden;
      display: none;
      animation: fadeUp 0.3s ease;
      min-width: 340px;
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
    }

    .result-header {
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--border);
    }

    /* 전시/후시 버튼 행 */
    .shi-shift-row {
      display: none;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      flex-wrap: wrap;
    }

    .shi-shift-btn {
      padding: 4px 12px;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--surface);
      font-size: 1.6rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
    }

    .shi-shift-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-light);
    }

    .shi-shift-label {
      font-size: 1.12rem;
      color: var(--text-muted);
      flex: 1;
      text-align: center;
      letter-spacing: 0.04em;
    }

    .result-name {
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      font-size: 1.76rem;
      font-weight: 400;
    }

    .result-meta {
      margin-top: 5px;
      font-size: 1.6rem;
      font-weight: 400;
      color: var(--text-secondary);
      display: flex;
      flex-wrap: wrap;
      gap: 4px 12px;
      align-items: center;
    }

    .gender-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 0;
      padding: 3px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--bg);
      cursor: pointer;
      font-size: 1.6rem;
      font-weight: 500;
      vertical-align: middle;
      margin-left: 6px;
      transition: all 0.15s;
    }

    .gender-toggle-btn:hover {
      border-color: var(--accent);
    }

    .gender-seg-active {
      border-radius: 16px;
      padding: 2px 12px;
      transition: all 0.15s;
      color: #fff;
    }

    .gender-seg-active-m {
      background: #75A8EB;
    }

    .gender-seg-active-f {
      background: #FF6262;
    }

    .gender-seg-inactive {
      color: var(--text-muted);
      padding: 2px 12px;
    }

    .bday-btn {
      background: none;
      border: none;
      padding: 0;
      color: inherit;
      font-size: inherit;
      cursor: pointer;
      text-decoration: underline dotted;
      text-underline-offset: 3px;
      font-family: inherit;
    }

    .bday-btn:hover {
      color: var(--accent);
    }

    #bday-cal-popup {
      z-index: 300;
    }

    .result-footer {
      padding: 12px 24px;
      display: none;
      align-items: center;
      gap: 12px;
    }

    .footer-divider {
      width: 1px;
      height: 12px;
      background: var(--border);
    }

    .badge-eqtime {
      font-size: 1.5rem;
      font-weight: 400;
      color: var(--accent);
      background: var(--accent-light);
      border-radius: 20px;
      padding: 2px 9px;
    }

    .yunwoon-section {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      margin-top: 12px;
      box-shadow: var(--shadow);
      overflow: hidden;
      display: none;
      animation: fadeUp 0.3s ease;
    }

    .yunwoon-title {
      padding: 14px 20px;
      font-size: 1.6rem;
      font-weight: 500;
      letter-spacing: 0;
      color: #000;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .yunwoon-title-sep {
      color: var(--border);
      font-weight: 300;
    }

    .yunwoon-forward {
      font-size: 1.4rem;
      color: var(--accent);
      background: var(--accent-light);
      border-radius: 20px;
      padding: 2px 8px;
      text-transform: none;
      letter-spacing: 0;
    }

    .spinner {
      display: inline-block;
      width: 14px;
      height: 14px;
      border: 2px solid rgba(255, 255, 255, 0.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
      vertical-align: middle;
      margin-right: 6px;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* ── 사주 보기 상단 액션 버튼 ── */
    .result-top-bar {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }

    .result-top-bar button {
      flex: 1;
      padding: 9px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      font-size: 1.6rem;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
    }

    .result-top-bar button:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .result-top-bar .btn-edit {
      background: var(--accent-light);
      border-color: var(--accent);
      color: var(--accent);
      font-weight: 500;
    }

    /* ── 준비 중 화면 ── */
    .coming-soon {
      text-align: center;
      padding: 80px 20px;
      color: var(--text-muted);
    }

    .coming-soon p {
      font-size: 1.36rem;
      margin-top: 8px;
    }

    /* ── PC 상단 네비게이션 바 ── */
    #top-nav {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--top-nav-height);
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      z-index: 100;
      align-items: center;
    }

    .top-nav-inner {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .top-nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .top-nav-item {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.36rem;
      color: var(--text-secondary);
      padding: 7px 18px;
      border-radius: 6px;
      text-decoration: none;
      transition: all 0.15s;
      letter-spacing: 0.02em;
    }

    .top-nav-item:hover {
      background: var(--accent-light);
      color: var(--accent);
    }

    .top-nav-item.active {
      color: var(--accent);
      font-weight: 500;
      background: none;
    }

    /* ── 하단 네비게이션 바 ── */
    #bottom-nav-wrap {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 100;
    }

    #bottom-nav {
      height: var(--nav-height);
      background: var(--surface);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: stretch;
      box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    }

    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 0.992rem;
      text-decoration: none;
      padding: 6px 0;
      transition: color 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .nav-item:hover {
      color: var(--text-secondary);
    }

    .nav-item.active {
      color: var(--accent);
      font-weight: 500;
    }

    .nav-item.active .nav-icon svg path,
    .nav-item.active .nav-icon svg circle,
    .nav-item.active .nav-icon svg rect,
    .nav-item.active .nav-icon svg line {
      stroke: var(--accent);
    }

    .nav-icon {
      font-size: 2rem;
      line-height: 1;
    }

    /* ── 역학 달력 ── */
    .cal-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px 8px;
    }

    #home-saewoon-nav {
      border-bottom: 1px solid var(--border);
    }

    .cal-nav-title {
      font-size: 2rem;
      font-weight: 500;
      color: var(--text-primary);
    }

    .cal-nav-btn {
      background: none;
      border: 1px solid var(--border);
      cursor: pointer;
      color: var(--text-secondary);
      font-size: 1.6rem;
      width: 28px;
      height: 28px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.1s;
    }

    .cal-nav-btn:hover {
      background: var(--accent-light);
      color: var(--accent);
    }

    .cal-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }

    .cal-weekday {
      text-align: center;
      font-size: 1.8rem;
      font-weight: 400;
      color: var(--text-secondary);
      padding: 8px 2px;
      letter-spacing: 0.02em;
    }

    .cal-weekday.sun {
      color: #FF4A32;
    }

    .cal-weekday.sat {
      color: #2471a3;
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
    }

    .cal-cell {
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 6px 4px 5px;
      min-height: 76px;
      position: relative;
      cursor: pointer;
    }

    .cal-cell:hover {
      background: var(--accent-light);
    }

    .cal-cell.today:hover {
      filter: brightness(0.95);
    }

    .cal-cell:nth-child(7n) {
      border-right: none;
    }

    .cal-cell.empty {
      background: #ffffff;
      cursor: default;
    }

    .cal-cell.empty:hover {
      background: #ffffff;
    }

    .cal-cell.today {
      background: #D9E7FF;
    }

    .cal-cell.holiday .cal-solar-day,
    .cal-cell.sun-col .cal-solar-day {
      color: #FF4A32;
    }

    .cal-cell.sat-col .cal-solar-day {
      color: #2471a3;
    }

    .cal-solar-day {
      font-size: 1.408rem;
      font-weight: 500;
      line-height: 1;
      margin-bottom: 3px;
    }

    .cal-today-mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      background: var(--accent);
      color: white;
      border-radius: 50%;
      font-size: 1.184rem;
      font-weight: 600;
    }

    .cal-lunar-day {
      font-size: 1.2rem;
      font-weight: 400;
      color: #999999;
      margin-bottom: 2px;
      line-height: 1;
    }

    .cal-cell.today .cal-lunar-day {
      font-weight: 500;
      color: #25198F;
    }

    .cal-ganjee {
      font-size: 1.6rem;
      font-weight: 500;
      line-height: 1.25;
      color: #444444;
      margin-bottom: 3px;
    }

    .cal-cell.today .cal-ganjee,
    .cal-cell.cal-selected .cal-ganjee {
      font-weight: 600;
      color: #25198F;
    }

    .cal-lunar-day.new-month {
      font-weight: 500;
      color: #FF8000;
    }

    /* 달력 내부 배지 그룹 */
    .cal-badges-wrap {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start; /* 왼쪽 정렬 */
      gap: 2px;
      width: 100%;
      padding-left: 2px;
    }

    .cal-terms {
      font-size: 1.3rem;
      font-weight: 400;
      color: #ffffff;
      background: var(--terms-badge-bg);
      border-radius: 3px;
      padding: 1px 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 20px;
      height: 18px;
    }

    .cal-nav-pick {
      cursor: pointer;
      padding: 2px 4px;
      border-radius: 4px;
      transition: background 0.2s;
    }

    .cal-nav-pick:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .cal-event {
      font-size: 0.8rem;
      color: #c0392b;
      margin-top: 1px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    /* 달력 하단 절기/음력 목록 */
    .cal-terms-footer {
      border-top: 1px solid var(--border);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .cal-terms-item {
      font-size: 1.5rem;
      font-weight: 400;
      color: #444;
      display: flex;
      align-items: flex-start; /* 상단 정렬 */
      line-height: 1.4;
    }

    .terms-title-group {
      display: flex;
      align-items: center;
      white-space: nowrap; /* 명칭 줄바꿈 금지 */
      flex-shrink: 0;
    }

    .terms-name {
      color: #444;
      font-weight: 500;
    }

    .terms-desc {
      flex: 1;
      margin-left: 4px;
      color: #666;
      word-break: keep-all;
    }

    .cal-terms-item .lunar-label {
      color: #25198F;
      font-weight: 500;
    }

    .cal-footer-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 24px;
      width: auto;
      height: 20px;
      padding: 0 4px;
      border-radius: 4px;
      color: #fff;
      font-size: 1.1rem;
      font-weight: 600;
      margin-right: 6px;
      flex-shrink: 0;
    }

    /* 홈 버튼 그룹 */
    .home-btn-group {
      display: flex;
      gap: 0;
    }

    .home-btn-card {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 15px 8px;
      background: var(--surface);
      border: none;
      border-right: 1px solid var(--border);
      font-size: 1.6rem;
      font-weight: 500;
      color: #777777;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }

    .home-btn-card:last-child {
      border-right: none;
    }

    .home-btn-card:hover {
      background: var(--accent-light);
      color: var(--accent);
    }

    .home-btn-card:hover svg path,
    .home-btn-card:hover svg circle,
    .home-btn-card:hover svg rect {
      stroke: var(--accent);
    }

    /* (레거시) 홈 명식 입력 버튼 */
    .btn-go-input-wrap {
      padding: 12px 16px;
    }

    .btn-go-input {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
      padding: 11px;
      background: var(--accent-light);
      color: var(--accent);
      border: 1px solid var(--accent);
      border-radius: var(--radius);
      font-size: 1.4rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s;
    }

    .btn-go-input:hover {
      background: var(--accent);
      color: #fff;
    }

    /* ── 지장간 ── */
    .pillar-jijanggan {
      margin-top: 6px;
      border-top: 1px solid var(--border);
      padding-top: 5px;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .jijang-item {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      line-height: 1;
    }

    .jijang-h {
      font-family: var(--font-hanja);
      font-size: 1.4rem;
      font-weight: 400;
      color: #68635F;
    }

    /* ── 십이운성 / 십이신살 ── */
    .sipun-bar {
      padding: 8px 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-top: 1px solid var(--border);
      background: #f7f6f3;
      position: relative;
    }

    .sipun-bar-label {
      font-size: 1.6rem;
      font-weight: 400;
      letter-spacing: 0.04em;
      color: var(--text-muted);
    }

    .sipun-bar-icon {
      position: absolute;
      right: 16px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
    }

    .sipun-bar-icon svg {
      transition: transform 0.2s;
    }

    .sipun-bar-icon.open svg {
      transform: rotate(90deg);
    }

    #view-result header {
      padding-top: 30px;
    }

    #view-result header h1 {
      font-size: 2.6rem;
      font-weight: 500;
      color: #000;
      letter-spacing: 0;
    }

    #view-input header {
      padding-top: 30px;
    }

    #view-input header h1 {
      font-size: 2.6rem;
      font-weight: 500;
      color: #000;
      letter-spacing: 0;
    }

    .sipun-base-btn {
      padding: 4px 10px;
      border: 1px solid var(--border);
      border-radius: 4px;
      background: var(--surface);
      font-size: 1.4rem;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.15s;
    }

    .sipun-base-btn.active {
      border-color: var(--accent);
      background: var(--accent-light);
      color: var(--accent);
      font-weight: 500;
    }

    .sipun-base-btn-year.active {
      background: #dcfce7;
      border-color: #15803d;
      color: #15803d;
      font-weight: 500;
    }

    .sipun-sinsal-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }

    .sipun-sinsal-grid+.sipun-sinsal-grid {
      border-top: 1px solid var(--border);
    }

    .ss-cell {
      padding: 7px 4px;
      text-align: center;
      border-right: 1px solid var(--border);
    }

    .ss-cell:last-child {
      border-right: none;
    }

    .ss-cell-label {
      font-size: 1.2rem;
      font-weight: 400;
      color: var(--text-muted);
      margin-bottom: 3px;
      letter-spacing: 0.03em;
    }

    .ss-cell-value {
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--text-primary);
    }

    .jijang-ss {
      font-size: 1.4rem;
      font-weight: 400;
      color: #68635F;
      letter-spacing: 0;
    }

    /* ── 신살 버튼 ── */
    .sinsal-col {
      padding: 8px 5px;
      border-right: 1px solid var(--border);
      min-height: 48px;
    }

    .sinsal-col:last-child {
      border-right: none;
    }

    .sinsal-col-label {
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 5px;
      letter-spacing: 0.04em;
    }

    .sinsal-badge-btn {
      display: block;
      width: 100%;
      padding: 3px 4px;
      margin-bottom: 3px;
      background: var(--accent-light);
      color: var(--accent);
      border: 1px solid var(--accent);
      border-radius: 3px;
      font-size: 1.4rem;
      cursor: pointer;
      text-align: center;
      transition: all 0.15s;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .sinsal-badge-btn:hover {
      background: var(--accent);
      color: #fff;
    }

    .nabeun-btn {
      background: #f5efe4;
      color: #7a5c2e;
      border-color: #c9a96e;
      margin-bottom: 5px;
    }

    .nabeun-btn:hover {
      background: #c9a96e;
      color: #fff;
    }

    .sinsal-none {
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--text-muted);
      text-align: center;
    }

    /* ── 신살 모달 ── */
    #sinsal-modal {
      z-index: 1000;
    }

    .sinsal-modal-box {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 24px 0 20px 22px;
      max-width: 320px;
      width: 90%;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .sinsal-modal-close {
      position: absolute;
      top: 10px;
      right: 14px;
      background: none;
      border: none;
      font-size: 1.76rem;
      cursor: pointer;
      color: var(--text-muted);
      line-height: 1;
    }

    .sinsal-modal-title {
      font-size: 1.6rem;
      font-weight: 600;
      margin-bottom: 10px;
      color: var(--text-primary);
      line-height: 1.4;
      padding-right: 42px;
      flex-shrink: 0;
    }

    .sinsal-modal-desc {
      font-size: 1.4rem;
      color: var(--text-secondary);
      line-height: 1.65;
      overflow-x: hidden;
      overflow-y: auto;
      flex: 1;
      min-height: 0;
      padding-right: 22px;
    }

    .sinsal-modal-desc img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin: 4px 0;
      display: block;
    }

    /* ── 포커스 시 placeholder 숨김 ── */
    input:focus::placeholder {
      color: transparent;
    }

    input:focus::-webkit-input-placeholder {
      color: transparent;
    }

    input:focus::-moz-placeholder {
      color: transparent;
    }

    .sinsal-modal-box {
      max-height: 80vh;
      overflow: hidden;
    }

    .sinsal-calc-section {
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
    }

    .sinsal-calc-title {
      font-size: 1.4rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      margin-bottom: 6px;
      text-transform: uppercase;
    }

    .sc-tbl {
      width: 100%;
      border-collapse: collapse;
      font-size: 1.4rem;
      margin-top: 4px;
    }

    .sc-tbl th,
    .sc-tbl td {
      padding: 3px 7px;
      border: 1px solid var(--border);
      text-align: center;
      font-family: var(--font-hanja);
    }

    .sc-tbl th {
      background: #f7f6f3;
      color: var(--text-muted);
      font-weight: 500;
      font-size: 1.4rem;
    }

    .sc-note {
      font-size: 1.4rem;
      color: var(--text-secondary);
      line-height: 1.55;
      margin-bottom: 6px;
    }

    /* ── 십이운성 클릭 버튼 (원국) ── */
    .sipun-val-btn {
      display: block;
      width: 100%;
      padding: 2px 3px;
      border: none;
      border-radius: 3px;
      cursor: pointer;
      font-size: 1.4rem;
      font-weight: 400;
      background: transparent;
      color: var(--text-primary);
      transition: background 0.15s;
      text-align: center;
    }

    .sipun-val-btn:hover {
      background: var(--accent-light);
      color: var(--accent);
    }

    .sipun-val-day {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .sipun-val-year {
      background: #dcfce7;
      color: #15803d;
    }

    .sipun-val-base {
      background: #f3f4f6;
      color: #374151;
    }

    .sipun-base-bar {
      background: #fff !important;
    }

    .sipun-col-header {
      border-top: 1px solid var(--border);
    }

    .sipun-col-header .hchh-col-head {
      border-top: none;
    }

    /* ── 대운/세운/월운 내 배지 컨테이너 ── */
    .yun-badges {
      margin-top: 4px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .yun-badges .sipun-val-btn {
      font-size: 1.4rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: none;
      cursor: default;
    }

    /* 선택된 대운 위 배지 가독성 (연한 배경이므로 별도 처리 불필요) */

    /* 명식 입력 헤더 부제목 */
    .header-subtitle {
      font-size: 1.4rem;
      color: var(--text-muted);
      margin-top: 5px;
    }

    .required-mark {
      color: #e53e3e;
      margin-left: 3px;
      font-weight: 700;
    }

    /* 사주 박스 — 천간/지지 클릭 버튼 */
    .ganjee-btn {
      -webkit-appearance: none;
      appearance: none;
      box-sizing: border-box;
      border: none;
      cursor: pointer;
      font-family: 'Noto Sans KR', sans-serif;
      font-size: 3.6rem;
      font-weight: 500;
      line-height: 1;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      aspect-ratio: 1;
      border-radius: 20px;
      transition: opacity 0.15s;
    }

    .ganjee-btn:hover {
      opacity: 0.6;
    }

    /* 사주 박스 — 십성 클릭 버튼 */
    .pillar-sipsung-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      font-size: 1.6rem;
      font-weight: 400;
      color: var(--text-muted);
      letter-spacing: 0.03em;
      padding: 0;
      display: block;
      width: 100%;
      transition: color 0.15s;
    }

    .pillar-sipsung-btn:hover {
      color: var(--accent);
    }

    /* 사주 박스 — 주(柱) 레이블 클릭 버튼 */
    .pillar-label-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      font-size: 1.8rem;
      font-weight: 500;
      color: var(--text-muted);
      letter-spacing: 0.06em;
      padding: 0;
      margin-bottom: 6px;
      display: block;
      width: 100%;
      transition: color 0.15s;
    }

    .pillar-label-btn:hover {
      color: var(--accent);
    }

    /* 대운 간지 클릭 버튼 */
    .yun-ganjee-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      font-size: 2.8rem;
      font-weight: 400;
      line-height: 1.3;
      padding: 0;
      display: block;
      width: 100%;
      color: inherit;
      transition: opacity 0.15s;
    }

    .yun-ganjee-btn:hover {
      opacity: 0.6;
    }

    /* 대운/세운/월운 — 자체(柱) 십이운성 */
    .yun-sipun-own {
      font-size: 1.3rem;
      margin-top: 1px;
      text-align: center;
      font-style: italic;
      color: var(--text-muted);
      letter-spacing: 0.02em;
    }

    /* 간지 팝업 — 천간/지지 구분 노트 */
    .ganjee-type-note {
      font-size: 1.6rem;
      color: var(--accent);
      margin-bottom: 9px;
      padding: 4px 9px;
      background: var(--accent-light);
      border-radius: 4px;
      line-height: 1.5;
    }

    /* ── 형충회합 4열×2행 그리드 ── */
    .hchh-grid2 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-top: 1px solid var(--border);
    }

    .hchh-col-head {
      padding: 5px 3px;
      text-align: center;
      border-right: 1px solid var(--border);
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--text-muted);
      background: #fafaf9;
    }

    .hchh-col-head:last-child {
      border-right: none;
    }

    .hchh-col {
      padding: 5px 3px;
      border-right: 1px solid var(--border);
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-height: 28px;
    }

    .hchh-col:last-child {
      border-right: none;
    }

    .hchh-btn {
      display: block;
      width: 100%;
      padding: 2px 2px;
      border-radius: 3px;
      border: none;
      font-size: 1.4rem;
      font-weight: 400;
      transition: all 0.15s;
      line-height: 1.5;
      text-align: center;
    }

    .hchh-btn-hap {
      background: #f0fdf4;
      color: #166534;
    }

    .hchh-btn-hap:hover {
      background: #bbf7d0;
    }

    .hchh-btn-chung {
      background: #fff1f2;
      color: #9f1239;
    }

    .hchh-btn-chung:hover {
      background: #fecdd3;
    }

    .hchh-btn-kkeuk {
      background: #fff7ed;
      color: #9a3412;
    }

    .hchh-btn-kkeuk:hover {
      background: #fed7aa;
    }

    .hchh-btn-jijihap {
      background: #eff6ff;
      color: #1d4ed8;
    }

    .hchh-btn-jijihap:hover {
      background: #bfdbfe;
    }

    .hchh-btn-hyung {
      background: #fdf4ff;
      color: #7e22ce;
    }

    .hchh-btn-hyung:hover {
      background: #e9d5ff;
    }

    .hchh-btn-pa {
      background: #fffbeb;
      color: #b45309;
    }

    .hchh-btn-pa:hover {
      background: #fde68a;
    }

    .hchh-btn-hae {
      background: #fef2f2;
      color: #b91c1c;
    }

    .hchh-btn-hae:hover {
      background: #fecaca;
    }

    .hchh-none-col {
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
      font-size: 1.4rem;
      font-weight: 400;
      color: var(--text-muted);
      text-align: center;
      padding: 3px 0;
      line-height: 2;
    }

    /* ── 형충회합 태그 아이콘 ── */
    .hchh-tag {
      display: inline-block;
      padding: 0 4px;
      border-radius: 2px;
      font-size: 1.2rem;
      font-weight: 400;
      vertical-align: middle;
      margin-left: 2px;
      line-height: 1.5;
    }

    .hchh-tag-hap {
      background: #166534;
      color: #fff;
    }

    .hchh-tag-chung {
      background: #9f1239;
      color: #fff;
    }

    .hchh-tag-hyung {
      background: #7e22ce;
      color: #fff;
    }

    .hchh-tag-kkeuk {
      background: #9a3412;
      color: #fff;
    }

    .hchh-tag-pa {
      background: #b45309;
      color: #fff;
    }

    .hchh-tag-hae {
      background: #b91c1c;
      color: #fff;
    }

    /* ── 플로팅 사주 바 ── */
    #floating-saju-bar {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 150;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    @media (min-width:1024px) {
      #floating-saju-bar {
        top: var(--top-nav-height);
      }
    }

    /* 플로팅 바 내부: 사주 + 대운/세운 그룹을 가운데 정렬 */
    .floating-saju-inner {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 6px 16px;
      gap: 20px;
    }

    /* 사주 4주 그룹 */
    .floating-saju-group {
      display: flex;
      align-items: flex-end;
      gap: 6px;
    }

    /* 사주↔대운, 대운↔세운 세로 구분선 */
    .floating-divider {
      width: 1px;
      min-width: 1px;
      max-width: 1px;
      height: 67px;
      align-self: flex-end;
      background: #d1d5db;
      flex-shrink: 0;
    }

    /* 대운/세운 개별 그룹 */
    .floating-yun-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }

    /* 그룹 위 레이블 (시주/일주/월주/년주, 대운, 세운) */
    .floating-col-label {
      font-size: 1rem;
      color: var(--text-muted);
      letter-spacing: 0.04em;
      text-align: center;
      line-height: 1;
      margin-bottom: 2px;
    }

    /* 사주 4주 래퍼 */
    .floating-pillars-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
    }

    /* 레이블 행: 4개 가로 */
    .floating-labels-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      width: 100%;
    }

    /* 사주 4주 박스 행 */
    .floating-pillars-row {
      display: flex;
      gap: 6px;
      align-items: center;
    }

    /* 개별 주(柱) */
    .floating-pillar {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    /* 45% 축소 ganjee 박스: 원본 ganjee-btn은 aspect-ratio:1, border-radius:20px, font-size:36px
       45% → border-radius ~9px, font-size ~16.2px 사용 */
    .floating-ganjee-box {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 9px;
      font-family: var(--font-hanja);
      font-size: 1.8rem;
      font-weight: 500;
      line-height: 1;
    }

    /* 대운/세운 ganjee 박스 */
    .floating-yun-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
    }

    /* 기존 레거시용 (사용 안 함) */
    .floating-char {
      font-family: 'Noto Sans KR', sans-serif;
      font-size: 1.6rem;
      font-weight: 300;
      line-height: 1.25;
    }