/* 오른쪽 위 메뉴 + 아래 메뉴 막대 — site/menu.js 가 모든 쪽에 붙인다 (대표 2026-11-14 「우측 상단과 하단 메뉴도 넣어줘」).
   일주·띠·별자리 쪽은 /style.css 를 안 읽어서 따로 둔다. 색 토큰(--카드·--먹·--선·--흐린먹·--강조)은 두 스타일에 다 있다 */
  .윗줄 { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
  .로고 { font-family: "Song Myung", serif; font-size: 26px; color: var(--강조); text-decoration: none; }
  .윗줄 .메뉴단추 { width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--먹); display: grid; place-items: center; cursor: pointer; }
  .메뉴가림 { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); }
  .전체메뉴 { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(86vw, 340px); overflow-y: auto; background: var(--카드);
    border-left: 1px solid var(--선); padding: calc(12px + env(safe-area-inset-top)) 18px 24px; display: flex; flex-direction: column; }
  .전체메뉴[hidden], .메뉴가림[hidden] { display: none; }
  .전체메뉴머리 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .전체메뉴머리 b { font-family: "Song Myung", serif; font-weight: 400; font-size: 22px; color: var(--강조); }
  .메뉴닫기 { width: 44px; height: 44px; border: 0; background: transparent; color: var(--먹); font-size: 18px; cursor: pointer; }
  .메뉴묶음 { margin: 18px 0 4px; font-size: 12px; color: var(--흐린먹); }
  .전체메뉴 a { padding: 12px 0; border-bottom: 1px solid var(--선); color: var(--먹); text-decoration: none; font-size: 15px; }
  .전체메뉴 a small { color: var(--흐린먹); font-size: 12px; margin-left: 4px; }
  body.메뉴열림 { overflow: hidden; }
  .아래메뉴 { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 560px; margin: 0 auto;
    height: 70px; border-radius: 22px; background: #1d1d23; border: 1px solid #3a3a44; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
  .아래메뉴 a, .아래메뉴 button { display: grid; justify-items: center; gap: 3px; font: inherit; font-size: 11px; color: var(--흐린먹); text-decoration: none;
    background: none; border: 0; padding: 0 0 4px; cursor: pointer; }   /* 아래를 조금 더 비워 글자가 막대 바닥에서 뜨게 */
  .아래메뉴 [aria-current] { color: var(--강조); }
  body.아래메뉴있음 { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  body.아래메뉴있음 #용어창 { bottom: calc(96px + env(safe-area-inset-bottom)); }
  @media print { .아래메뉴, .전체메뉴, .메뉴가림, .메뉴단추 { display: none !important; } body.아래메뉴있음 { padding-bottom: 0; } }
  /* 전체 메뉴 시안 C — 포스터 바둑판형 (대표 2026-11-17) */
  .메뉴나칸 { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--옅은, #23232b); border: 1px solid var(--선); }
  .메뉴나칸 p { margin: 0; display: grid; }
  .메뉴나칸 b { font-size: 15px; } .메뉴나칸 small { color: var(--흐린먹); font-size: 12px; }
  .전체메뉴 .메뉴나칸 a { margin-left: auto; padding: 5px 12px; border: 1px solid var(--강조); border-radius: 999px; color: var(--강조); font-size: 13px; }
  .전체메뉴 .메뉴카카오 { display: block; text-align: center; padding: 13px; border: 0; border-radius: 12px; background: #fee500; color: #191600; font-weight: 700; }
  .메뉴타일들 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .전체메뉴 .메뉴타일 { position: relative; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--선); border-radius: 14px; overflow: hidden; background: var(--옅은, #23232b); }
  .메뉴타일 img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
  .메뉴타일::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
  .메뉴타일 b { position: absolute; left: 9px; right: 6px; bottom: 6px; z-index: 1; font-size: 13px; color: #fff; text-shadow: 0 1px 6px #000; }
  .메뉴타일 em { position: absolute; right: 6px; top: 6px; z-index: 1; font-style: normal; font-size: 10px; background: rgba(0,0,0,.6); color: #ddd; border-radius: 999px; padding: 1px 6px; }
  .메뉴아이콘들 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .전체메뉴 .메뉴아이콘들 a { display: grid; justify-items: center; gap: 4px; padding: 9px 0; border: 0; border-radius: 12px; background: var(--옅은, #23232b); font-size: 11.5px; }
  .메뉴아이콘들 span { font-size: 20px; line-height: 1.2; }
  .메뉴바닥 { display: flex; gap: 14px; margin-top: auto; padding-top: 18px; }
  .전체메뉴 .메뉴바닥 a, .메뉴바닥 button { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--흐린먹); cursor: pointer; text-decoration: none; }
  /* 로그인 상태 표시 — ☰ 옆 (대표 2026-11-17) */
  .윗줄오른쪽 { display: flex; align-items: center; gap: 4px; }
  .나표 { display: inline-flex; align-items: center; gap: 5px; max-width: 46vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
  .손님표 { background: #fee500; color: #191600; }
  .회원표 { border: 1px solid var(--강조); color: var(--강조); }
  .회원표 span { font-size: 9px; color: #5fc28a; }
  /* 하단 메뉴 시안 B — 가운데 금빛 큰 「사주 보기」 (대표 2026-11-17) */
  .아래메뉴 { overflow: visible; }
  /* ★ 글자는 다섯 칸 모두 같은 높이 — 가운데 칸을 통째로 올리면 「사주 보기」 글자가 막대 바닥에 붙었다(대표 2026-11-17 「박스 안 글자가 박스 바닥에 붙어 보여」). 동그라미만 위로 뺀다 */
  .아래메뉴 a.가운데칸 { color: var(--강조); font-weight: 700; }
  .가운데칸 .가운데알 { margin-top: -34px; margin-bottom: 2px; }
  .가운데알 { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #1a1405;
    background: radial-gradient(circle at 35% 30%, #ffe9a8, #e8c46a 60%, #a8812e); box-shadow: 0 0 0 5px var(--종이, #0c0c0f), 0 6px 20px rgba(232,196,106,.45); }
  .아래메뉴 a.가운데칸[aria-current] .가운데알 { box-shadow: 0 0 0 5px var(--종이, #0c0c0f), 0 0 22px rgba(255,233,168,.75); }
  /* 사업자 정보 — 띠·일주 쪽은 /style.css 를 안 읽어 기울고 커 보였다 (대표 2026-11-23 「푸터 홈화면과 동일하게」). 홈과 같은 값을 여기 둔다 */
  .사업자 { font-style: normal; font-size: 11px; line-height: 1.7; color: var(--흐린먹); margin-top: 16px; padding-top: 12px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
  .사업자 a { color: inherit; }
  /* 광고 알림 동의 처리 결과 — 가입 직후 한 번 (대표 2026-11-26) */
  .광고통지 { position: fixed; left: 12px; right: 12px; top: 12px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 14px 40px 14px 16px; border-radius: 14px; background: #1d1d23; border: 1px solid #e9c98a; color: #f3eee4; font-size: 13px; line-height: 1.6; }
  .광고통지 button { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: inherit; font-size: 16px; cursor: pointer; }
