/* 홈 V1 디자인 (11/4 사장님 확정 — Stitch 'Homepage V1' 프로젝트의 첫 시안 두 장)
   - 밝은 하늘 바탕 + 흰 카드 + 1px 선, 채운 주 버튼은 화면에 하나(오늘의 카드 뽑기), 나머지 버튼은 같은 외곽선 알약
   - PC: 흰 머리띠 72px · 둥근 히어로 카드 · 4칸 카드 · 밤하늘 아지트 띠 + 남색 바닥글
   - 휴대폰(1024px 아래): 메뉴 줄 대신 하단 탭 5칸 + 더보기 시트, 카드는 옆으로 넘기기
   - 공통 규칙은 공유 메모 homepage-v1-design-review.md 의 'V1 공통 규칙' (다른 페이지도 이 규칙으로 옮겨 갈 예정) */

:root {
  --v1-bg: #eef5ff;
  --v1-line: #d3e1f4;
  --v1-ink: #1f2d4a;
  --v1-sub: #4e6082;        /* 흰 바탕 6.3:1 */
  --v1-pri: #335da9;        /* 흰 글자 6.4:1 */
  --v1-pri-d: #24519c;
  --v1-gold: #f1c75b;
  --v1-navy: #14234a;
  --v1-navy-card: rgba(31, 45, 74, 0.55);
  --v1-navy-sub: #a3b4c5;   /* 남색 위 7.2:1 */
  --v1-navy-label: #86adff;
  --v1-ko: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --v1-body: Inter, var(--v1-ko);
  --v1-head: 'Plus Jakarta Sans', var(--v1-ko);
  --v1-tab: calc(64px + env(safe-area-inset-bottom));
}

.v1-page { background: var(--v1-bg); }
@media (max-width: 1023px) { .v1-page { padding-bottom: var(--v1-tab); } }

.v1-wrap { width: 100%; min-width: 0; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }   /* width: 100% — 세로 flex 안에서 margin auto 면 내용 폭(옆으로 넘기는 카드 줄 전체)만큼 넓어지는 걸 막음 */
@media (min-width: 768px) { .v1-wrap { padding-inline: 32px; } }

.v1-eyebrow { margin: 0; font: 700 11px/16px var(--v1-body); letter-spacing: .08em; text-transform: uppercase; color: var(--v1-pri); }
.v1-h2 { margin: 4px 0 0; font: 800 24px/1.3 var(--v1-head); letter-spacing: -.015em; color: var(--v1-ink); }
.v1-sec-sub { margin: 6px 0 0; font: 400 13px/1.6 var(--v1-body); color: var(--v1-sub); }
@media (min-width: 768px) { .v1-h2 { font-size: 30px; } .v1-sec-sub { font-size: 14px; } }
.v1-sec { padding-top: 40px; }
.v1-sec-head { margin-bottom: 16px; }
@media (min-width: 768px) { .v1-sec { padding-top: 96px; } .v1-sec-head { margin-bottom: 32px; } }

/* ---------- 머리띠 ---------- */
.v1-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--v1-line); }
.v1-header-in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 1024px) { .v1-header-in { height: 72px; } }
.v1-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--v1-ink); text-decoration: none; }
.v1-brand img { width: 32px; height: 32px; }
.v1-brand b { display: block; font: 800 17px/1.15 var(--v1-head); letter-spacing: -.01em; white-space: nowrap; }
.v1-brand small { display: none; margin-top: 2px; font: 600 9px/1.2 var(--v1-body); letter-spacing: .18em; color: var(--v1-sub); white-space: nowrap; }
@media (min-width: 640px) { .v1-brand small { display: block; } }
html[lang="en"] .v1-header .v1-brand b { font-size: 14px; letter-spacing: .01em; }   /* 영문 이름이 길어서 휴대폰 머리띠에 맞게 */
@media (min-width: 640px) { html[lang="en"] .v1-header .v1-brand b { font-size: 16px; } }
@media (min-width: 1024px) { .v1-brand img { width: 36px; height: 36px; } }
.v1-nav { display: none; gap: 2px; }
@media (min-width: 1024px) { .v1-nav { display: flex; } }
.v1-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9999px; font: 600 14px/1 var(--v1-body); color: var(--v1-sub); text-decoration: none; transition: color .2s, background .2s; }
.v1-nav a:hover, .v1-nav a:focus-visible { color: var(--v1-pri); background: var(--v1-bg); }
.v1-nav a[aria-current="page"] { color: var(--v1-pri); }
.v1-header-right { display: flex; align-items: center; gap: 6px; }
.v1-lang { display: inline-flex; padding: 3px; border-radius: 9999px; background: #f5f9ff; border: 1px solid var(--v1-line); font: 600 12px/1 var(--v1-body); }
.v1-lang > * { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9999px; color: var(--v1-sub); text-decoration: none; }
.v1-lang > a:hover, .v1-lang > a:focus-visible { color: var(--v1-pri); }
.v1-lang [aria-current] { background: var(--v1-pri); color: #fff; }
.v1-acct { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--v1-sub); border-radius: 50%; text-decoration: none; }
.v1-acct:hover, .v1-acct:focus-visible { color: var(--v1-pri); background: var(--v1-bg); }
.v1-acct .material-symbols-outlined { font-size: 26px; }
.v1-acct .acct-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; }

/* 키보드로 다닐 때도 같은 표시 (A11Y-002) */
.v1-page a:focus-visible, .v1-page button:focus-visible { outline: 2px solid var(--v1-pri); outline-offset: 3px; }

/* ---------- 첫 화면 ---------- */
.v1-hero-sec { padding-top: 20px; }
@media (min-width: 768px) { .v1-hero-sec { padding-top: 32px; } }
.v1-hero { position: relative; }
@media (min-width: 768px) {
  .v1-hero { overflow: hidden; padding: 56px; border-radius: 24px; border: 1px solid var(--v1-line); background: linear-gradient(135deg, #eef5ff 0%, #e7f0ff 50%, #dcebff 100%); }
  /* 글 쪽 배경의 옅은 별과 점선 별자리 (움직이는 별자리는 오른쪽 그림 칸에만) */
  .v1-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image:
      radial-gradient(1.6px 1.6px at 20px 30px, rgba(51, 93, 169, .45), transparent 70%),
      radial-gradient(1.1px 1.1px at 110px 45px, rgba(51, 93, 169, .35), transparent 70%),
      radial-gradient(1.3px 1.3px at 70px 120px, rgba(51, 93, 169, .5), transparent 70%),
      radial-gradient(1.6px 1.6px at 140px 130px, rgba(51, 93, 169, .4), transparent 70%);
    background-size: 160px 160px; }
}
.v1-hero-grid { position: relative; display: grid; gap: 20px; }
@media (min-width: 1024px) { .v1-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 32px; min-height: 470px; } }
.v1-h1 { margin: 6px 0 12px; font: 800 28px/1.25 var(--v1-head); letter-spacing: -.02em; color: var(--v1-ink); }
.v1-h1 em { font-style: normal; color: var(--v1-pri); }
.v1-lead { margin: 0 0 20px; max-width: 460px; font: 400 14px/1.7 var(--v1-body); color: var(--v1-sub); }
@media (max-width: 767px) { html[lang="en"] .v1-h1 { font-size: 26px; } }   /* 영문 제목이 세 줄이라 휴대폰에선 조금 작게 (첫 카드가 탭 위로 보이게) */
@media (min-width: 768px) { .v1-h1 { font-size: 42px; } .v1-lead { margin-bottom: 32px; font-size: 16px; } }
.v1-cta-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .v1-cta-row { flex-direction: row; flex-wrap: wrap; gap: 12px; } }
.v1-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 9999px; font: 700 15px/1 var(--v1-body); text-decoration: none; transition: background .2s, transform .15s; }
.v1-btn:active { transform: scale(.98); }
.v1-btn-pri { background: var(--v1-pri); color: #fff; }
.v1-btn-pri:hover, .v1-btn-pri:focus-visible { background: var(--v1-pri-d); }
.v1-btn-line { background: #fff; color: var(--v1-pri); box-shadow: inset 0 0 0 1px var(--v1-pri); }
.v1-btn-line:hover, .v1-btn-line:focus-visible { background: var(--v1-bg); }
@media (max-width: 639px) { .v1-btn-line { height: 48px; } }
.v1-spark { font-size: 18px; color: var(--v1-gold); font-variation-settings: 'FILL' 1; }
.v1-trust { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 14px 0 0; padding: 0; list-style: none; justify-content: center; font: 500 12px/1.5 var(--v1-body); color: var(--v1-sub); }
.v1-trust li + li::before { content: "·"; margin: 0 8px; color: #a3b4c5; }
.v1-trust li:nth-child(4) { display: none; }
@media (max-width: 767px) { html[lang="en"] .v1-trust li:nth-child(3) { display: none; } }   /* 영문은 길어서 휴대폰에선 두 개만 (줄바꿈 뒤 '·'로 시작하지 않게) */
@media (min-width: 768px) {
  .v1-trust { justify-content: flex-start; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--v1-line); }
  .v1-trust li + li::before { content: "|"; margin: 0 12px; }
  .v1-trust li:nth-child(4) { display: list-item; }
}

/* 오른쪽 그림: 흰 테 두른 타로 카드 + 수정구슬 동그라미 (휴대폰은 낮은 그림 띠) */
.v1-hero-art { position: relative; display: block; height: 190px; overflow: hidden; border-radius: 20px; border: 1px solid var(--v1-line);
  background: linear-gradient(160deg, #f1e9ff 0%, #dcebff 55%, #eef5ff 100%); }
@media (max-width: 767px) {
  .v1-hero-art { height: 112px; }
  .v1-glow { width: 180px; height: 180px; }
  .v1-tarot { width: 58px; height: 90px; padding: 3px; border-radius: 8px; }
  .v1-tarot-in { border-radius: 6px; }
}
@media (min-width: 1024px) { .v1-hero-art { height: 460px; overflow: visible; border: 0; border-radius: 0; background: none; } }
.v1-hero-art #hero-sky { position: absolute; inset: 0; }
.v1-glow { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 173, 255, .5), rgba(205, 229, 255, .35) 45%, transparent 70%); filter: blur(20px); pointer-events: none; }
.v1-tarot { position: absolute; left: 50%; top: 50%; width: 100px; height: 154px; padding: 5px; border-radius: 12px; background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px -12px rgba(20, 35, 74, .4); transform: translate(-50%, -50%) rotate(-3deg); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.v1-tarot-in { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 8px; background: var(--v1-navy); }
.v1-tarot-in img { width: 100%; height: 100%; object-fit: cover; }
.v1-tarot-top, .v1-tarot-glass, .v1-orb { display: none; }
@media (hover: hover) { .v1-hero-art:hover .v1-tarot { transform: translate(-50%, -50%) rotate(0deg); } }
@media (min-width: 1024px) {
  .v1-glow { width: 400px; height: 400px; filter: blur(28px); }
  .v1-tarot { width: 260px; height: 380px; padding: 8px; border-radius: 20px; }
  .v1-tarot-in { border-radius: 14px; }
  .v1-tarot-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center;
    font: 700 10px/1 var(--v1-head); letter-spacing: .2em; color: var(--v1-gold); }
  .v1-tarot-top .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
  .v1-tarot-glass { position: absolute; left: 14px; right: 14px; bottom: 14px; display: block; padding: 12px; border-radius: 12px; text-align: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .v1-tarot-glass b { display: block; font: 700 12px/1.4 var(--v1-body); color: #fff; }
  .v1-tarot-glass small { display: block; margin-top: 2px; font: 400 10px/1.4 var(--v1-body); color: rgba(255, 255, 255, .8); }
  .v1-orb { position: absolute; right: 9%; bottom: 3%; display: block; width: 172px; height: 172px; padding: 8px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(220, 234, 250, .7)); border: 1px solid #fff; box-shadow: 0 12px 30px -10px rgba(20, 35, 74, .28); }
  .v1-orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
}

/* 안내 띠 (예전 전체 화면 팝업 대신, 11/4) — 디자인 점검 뒤: 소식 하나 · 한 줄 52px · 띠 전체를 누르면 이동, 끝에는 › 와 × (CMP-044) */
.v1-strip { margin-top: 12px; display: flex; align-items: center; gap: 2px; min-height: 52px; padding-right: 4px; border-radius: 16px; background: #fff; border: 1px solid var(--v1-line); }
.v1-strip[hidden] { display: none; }
.v1-strip-link { flex: 1; min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 12px; border-radius: 16px; color: var(--v1-ink); text-decoration: none; }
.v1-strip-ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--v1-bg); color: var(--v1-pri); }
.v1-strip-ico .material-symbols-outlined { font-size: 17px; }
.v1-strip-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px/1.4 var(--v1-body); }
.v1-strip-more { display: none; font-weight: 500; color: var(--v1-sub); }
.v1-strip-arrow { flex: none; font-size: 20px; color: var(--v1-pri); }
.v1-strip-link:hover .v1-strip-text { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) { .v1-strip-link { padding-left: 20px; } .v1-strip-more { display: inline; } }
.v1-strip-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--v1-sub); cursor: pointer; }
.v1-strip-x:hover { background: var(--v1-bg); color: var(--v1-ink); }

/* ---------- 카드 (모든 카드 같은 틀 · 같은 외곽선 알약 버튼 — COL-001) ---------- */
.v1-card { position: relative; display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--v1-line);
  transition: transform .25s cubic-bezier(.2, 0, 0, 1), border-color .25s; }
@media (hover: hover) { .v1-card:hover { transform: translateY(-4px); border-color: #b9cde9; } }
.v1-card:focus-within { transform: translateY(-4px); }
.v1-card-img { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: 12px; background: #e6f0fd; }
.v1-card-img > img, .v1-card-img > video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
@media (hover: hover) { .v1-card:hover .v1-card-img > img, .v1-card:hover .v1-card-img > video { transform: scale(1.04); } }
.v1-card-body { padding-bottom: 14px; border-bottom: 1px solid var(--v1-bg); }
.v1-card-eyebrow { margin: 0 0 4px; font: 600 11px/16px var(--v1-body); letter-spacing: .04em; color: var(--v1-pri); }
.v1-card-title { margin: 0 0 6px; font: 700 16px/1.4 var(--v1-head); color: var(--v1-ink); }
.v1-card-title a { color: inherit; text-decoration: none; }
.v1-card-title a:hover { color: var(--v1-pri); }
.v1-card-desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 13px/1.6 var(--v1-body); color: var(--v1-sub); }
.v1-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v1-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11px/1.4 var(--v1-body); color: var(--v1-sub); }
.v1-meta a { color: inherit; text-decoration: none; }
.v1-meta a:hover { color: var(--v1-ink); text-decoration: underline; }
.v1-pill { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 16px; border-radius: 9999px;
  background: #fff; color: var(--v1-pri); box-shadow: inset 0 0 0 1px var(--v1-pri); font: 600 12px/1 var(--v1-body); text-decoration: none; white-space: nowrap; transition: background .2s; }
.v1-pill:hover, .v1-pill:focus-visible { background: var(--v1-bg); }
.v1-chip { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 9999px; background: rgba(255, 255, 255, .9); font: 600 11px/1.4 var(--v1-body); color: var(--v1-ink); }
.v1-play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--v1-pri); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .3s; }
.v1-play .material-symbols-outlined { font-size: 30px; font-variation-settings: 'FILL' 1; }
.v1-card:hover .v1-play { transform: scale(1.08); }

/* 오늘 즐기기: 휴대폰은 옆으로 넘기는 큰 카드(다음 카드가 살짝 보임), 태블릿 2칸, PC 4칸 */
.v1-picks { display: flex; gap: 12px; margin-inline: -16px; padding: 4px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.v1-picks::-webkit-scrollbar { display: none; }
.v1-picks > .v1-card { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
.v1-dashes { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.v1-dashes i { width: 8px; height: 6px; border-radius: 9999px; background: var(--v1-line); transition: width .25s, background .25s; }
.v1-dashes i.on { width: 24px; background: var(--v1-pri); }
@media (min-width: 768px) {
  .v1-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .v1-picks > .v1-card { flex: none; }
  .v1-dashes { display: none; }
}
@media (min-width: 1024px) { .v1-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* AI 토론 (11/6 사장님 요청: 페이지 뷰가 가장 많은 AI 토론을 위로) — A 첫 화면 LIVE 카드 · B '네 가지 놀이' 위 넓은 띠 (글은 assets/azit-home.js) */
.v1-live-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #c2413b; animation: v1-pulse 1.6s ease-in-out infinite; }
@keyframes v1-pulse { 50% { box-shadow: 0 0 0 5px rgba(194, 65, 59, .18); } }
@media (prefers-reduced-motion: reduce) { .v1-live-dot { animation: none; } }
.v1-live { display: flex; align-items: center; gap: 12px; max-width: 460px; margin-top: 16px; padding: 12px 8px 12px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--v1-line);
  color: var(--v1-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.v1-live[hidden] { display: none; }
.v1-live.is-live { border-color: rgba(194, 65, 59, .4); }
@media (hover: hover) { .v1-live:hover { transform: translateY(-2px); border-color: #b9cde9; } .v1-live.is-live:hover { border-color: #c2413b; } }
.v1-live > img { flex: none; width: 44px; height: 44px; padding: 4px; border-radius: 12px; background: var(--v1-bg); }
.v1-live-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.v1-live-txt small { display: flex; align-items: center; font: 700 11px/16px var(--v1-body); color: var(--v1-pri); }
.v1-live.is-live .v1-live-txt small { color: #c2413b; }
.v1-live-txt b, .v1-live-txt > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v1-live-txt b { font: 700 15px/1.4 var(--v1-head); }
.v1-live-txt > span { font: 400 12px/1.5 var(--v1-body); color: var(--v1-sub); }
.v1-live > .material-symbols-outlined { flex: none; color: var(--v1-pri); }
.v1-debate[hidden] { display: none; }
.v1-debate { gap: 14px; margin-bottom: 16px; }
.v1-debate.is-live { border-color: rgba(194, 65, 59, .4); }
.v1-debate-head { display: flex; align-items: center; gap: 14px; }
.v1-debate-ic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--v1-bg); }
.v1-debate .v1-card-body { flex: 1; min-width: 0; padding: 0; border: 0; }
.v1-debate .v1-card-eyebrow { display: flex; align-items: center; }
.v1-debate.is-live .v1-card-eyebrow { color: #c2413b; }
.v1-debate-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v1-debate-list a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 6px 8px 10px; border-radius: 12px; background: var(--v1-bg); color: var(--v1-ink); text-decoration: none; }
.v1-debate-list a:hover { background: #e2edfd; }
.v1-dtag { flex: none; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9999px; background: #fff; font: 700 11px/16px var(--v1-body); color: var(--v1-pri); white-space: nowrap; }
.v1-dtag.is-live { color: #c2413b; }
.v1-dtag .v1-live-dot { width: 7px; height: 7px; margin-right: 5px; }
.v1-drow { flex: 1; min-width: 0; display: grid; }
.v1-drow b, .v1-drow small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v1-drow b { font: 700 14px/1.45 var(--v1-head); }
.v1-drow small { font: 400 12px/1.5 var(--v1-body); color: var(--v1-sub); }
.v1-debate-list .material-symbols-outlined { flex: none; font-size: 20px; color: #a3b4c5; }
.v1-debate-go { align-self: stretch; }   /* 휴대폰: 목록 아래 넓은 알약 */
@media (min-width: 1024px) {   /* PC: 왼쪽 이름·소개·버튼 | 오른쪽 토론 목록 */
  .v1-debate { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: 1fr auto; gap: 12px 32px; padding: 20px 24px; }
  .v1-debate-head { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .v1-debate-go { grid-column: 1; grid-row: 2; justify-self: start; align-self: end; }
  .v1-debate-list { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* 생활 꿀정보: 휴대폰은 한 카드 안 목록 두 줄, 태블릿부터 넓은 카드 두 장 */
.v1-rows { padding: 2px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--v1-line); }
.v1-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
.v1-row + .v1-row { border-top: 1px solid var(--v1-bg); }
.v1-row img { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.v1-row span:not(.material-symbols-outlined) { flex: 1; min-width: 0; }
.v1-row b { display: block; font: 700 15px/1.4 var(--v1-head); color: var(--v1-ink); }
.v1-row small { display: block; margin-top: 3px; font: 400 12px/1.4 var(--v1-body); color: var(--v1-sub); }
.v1-row .material-symbols-outlined { flex: none; color: #a3b4c5; }
.v1-info { display: none; }
@media (min-width: 768px) {
  .v1-rows { display: none; }
  .v1-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .v1-wide { flex-direction: row; align-items: center; gap: 20px; padding: 20px; }
  .v1-wide .v1-card-img { flex: 0 0 40%; margin: 0; }
  .v1-wide-body { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 768px) and (max-width: 1023px) { .v1-info { grid-template-columns: minmax(0, 1fr); } }

/* 더 깊이 놀기: 휴대폰은 정사각 타일 3칸 + 이름, 태블릿부터 카드 */
.v1-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v1-more > .v1-card { padding: 8px; }
.v1-more .v1-card-img { aspect-ratio: 1 / 1; margin-bottom: 8px; }
.v1-more .v1-card-body, .v1-more .v1-card-foot { display: none; }
.v1-tile-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font: 600 12px/1.4 var(--v1-body); color: var(--v1-ink); text-decoration: none; }
@media (min-width: 768px) {
  .v1-more { gap: 24px; }
  .v1-more > .v1-card { padding: 20px; }
  .v1-more .v1-card-img { aspect-ratio: 16 / 9; margin-bottom: 16px; }
  .v1-more .v1-card-body { display: block; }
  .v1-more .v1-card-foot { display: flex; }
  .v1-tile-label { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .v1-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  #ytdoc .v1-card-img { background:
      radial-gradient(1px 1px at 22% 28%, #fff, transparent 60%), radial-gradient(1.2px 1.2px at 72% 18%, #fff, transparent 60%),
      radial-gradient(1px 1px at 38% 78%, #86adff, transparent 60%), radial-gradient(.9px .9px at 84% 66%, #fff, transparent 60%),
      radial-gradient(1px 1px at 12% 62%, #dceafa, transparent 60%), radial-gradient(ellipse at 30% 30%, #2a3a6a 0%, #14234a 75%) !important; }
  #ytdoc .v1-card-img > img, #ytdoc .v1-chip { display: none; }
  #ytdoc .v1-play { width: 36px; height: 36px; box-shadow: none; }
  #ytdoc .v1-play .material-symbols-outlined { font-size: 22px; }
}
.v1-garden { background: linear-gradient(180deg, #f5f9ff, #dcebff); }
.v1-garden [data-garden-mini] { position: relative; display: block; height: 100%; aspect-ratio: 1 / 1; margin-inline: auto; }
.v1-garden canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 우주 아지트: 밤하늘 띠 (휴대폰은 남색 둥근 카드) ---------- */
.v1-night { position: relative; overflow: hidden; margin: 40px 16px 0; padding: 24px 20px; border-radius: 20px; background: var(--v1-navy); color: #fff; }
.v1-night::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: radial-gradient(1px 1px at 15px 20px, #fff, transparent 70%), radial-gradient(1.2px 1.2px at 85px 75px, #fff, transparent 70%), radial-gradient(.8px .8px at 45px 85px, #86adff, transparent 70%);
  background-size: 100px 100px; }
.v1-night > .v1-wrap { position: relative; padding-inline: 0; }
@media (min-width: 768px) { .v1-night { margin: 96px 0 0; padding: 96px 0; border-radius: 0; } .v1-night > .v1-wrap { padding-inline: 32px; } }
.v1-night .v1-eyebrow { color: var(--v1-navy-label); }
.v1-night .v1-h2 { color: #fff; }
.v1-night .v1-sec-sub { color: var(--v1-navy-sub); }
.v1-night-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
@media (min-width: 768px) { .v1-night-head { margin-bottom: 32px; } }
.v1-pill-night { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.v1-pill-night:hover, .v1-pill-night:focus-visible { background: rgba(255, 255, 255, .08); }
.v1-night-head .v1-pill-night { display: none; }
.v1-night-more { margin-top: 16px; width: 100%; min-height: 44px; }
@media (min-width: 768px) { .v1-night-head .v1-pill-night { display: inline-flex; } .v1-night-more { display: none; } }
.v1-night-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { .v1-night-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; } }

/* 게시판 카드는 assets/azit-home.js 가 밝은 카드 이름표로 그려서, 이 띠 안에서만 밤 색으로 바꿔 줘요 */
.v1-night #azit-boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 768px) { .v1-night #azit-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.v1-night #azit-boards > article { background: var(--v1-navy-card); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; }
.v1-night #azit-boards .text-on-surface { color: #fff; }
.v1-night #azit-boards .text-on-surface-variant { color: #dceafa; }
.v1-night #azit-boards .text-outline { color: var(--v1-navy-sub); }
.v1-night #azit-boards .text-secondary { color: var(--v1-navy-label); }
.v1-night #azit-boards .text-tertiary { color: var(--v1-gold); }
.v1-night #azit-boards .text-\[\#c2416b\], .v1-night #azit-boards .text-\[\#c2413b\] { color: #ff9db8; }
.v1-night #azit-boards .bg-\[\#c2413b\] { background: #ff9db8; }
.v1-night #azit-boards .bg-\[\#fdf3dc\] { background: rgba(241, 199, 91, .14); }
.v1-night #azit-boards .text-\[\#7a5208\] { color: var(--v1-gold); }
.v1-night #azit-boards .bg-surface-container-high { background: rgba(255, 255, 255, .08); box-shadow: none; }
.v1-night #azit-boards a:hover { color: #fff; }
@media (max-width: 767px) {
  .v1-night { margin: 40px 0 0; padding: 32px 16px; border-radius: 0; }
  .v1-night #azit-boards { gap: 0; }
  .v1-night #azit-boards > article { gap: 6px; padding: 14px 0; background: none; border: 0; border-radius: 0; }
  .v1-night #azit-boards > article + article { border-top: 1px solid rgba(255, 255, 255, .1); }
  .v1-night #azit-boards article .w-14 { width: 40px; height: 40px; border-radius: 10px; font-size: 24px; }
  .v1-night #azit-boards article .tracking-wider { display: none; }
  .v1-night #azit-boards article > :not(:first-child) { padding-left: 52px; }
  .v1-night #azit-boards .azit-posts li:nth-child(n+2) { display: none; }
  .v1-night #azit-boards .azit-posts li:first-child { margin: 0; padding: 0; background: none; }
}

.v1-apod { margin: 0; display: none; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--v1-navy-card); border: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .v1-apod { display: flex; } }
.v1-apod-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin: 16px 16px 0; border-radius: 12px; background: radial-gradient(ellipse at 30% 30%, #2a3a6a 0%, #14234a 70%); color: var(--v1-navy-label); }
.v1-apod-media svg, .v1-apod-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.v1-apod-media img { object-fit: cover; }
.v1-apod-cap { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.v1-apod-cap .v1-card-eyebrow { color: var(--v1-navy-label); }
.v1-apod-cap h3 { margin: 0; font: 700 16px/1.4 var(--v1-head); color: #fff; }
.v1-apod-cap p { margin: 0; font: 400 13px/1.6 var(--v1-body); color: #dceafa; }
.v1-apod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.v1-apod-foot .v1-meta { color: var(--v1-navy-sub); }

/* ---------- 바닥글: PC는 아지트 띠와 이어지는 남색, 휴대폰은 짧은 링크 한 줄 ---------- */
.v1-footer { padding: 32px 0 24px; text-align: center; color: var(--v1-sub); }
.v1-foot-grid { display: block; }
.v1-foot-brand, .v1-foot-col { display: none; }
.v1-foot-col.v1-foot-site { display: block; }
.v1-foot-col h2 { display: none; }
.v1-foot-col ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.v1-foot-col li + li::before { content: "·"; color: #a3b4c5; }
.v1-foot-col li > a, .v1-foot-col li > button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: inherit; font: 500 12px/1.4 var(--v1-body); text-decoration: none; cursor: pointer; }
.v1-foot-col li > a:hover, .v1-foot-col li > button:hover { text-decoration: underline; }
.v1-foot-bottom { margin-top: 6px; font: 400 12px/1.5 var(--v1-body); }
@media (min-width: 768px) {
  .v1-footer { padding: 56px 0 32px; text-align: left; background: var(--v1-navy); color: var(--v1-navy-sub); border-top: 1px solid rgba(255, 255, 255, .1); }
  .v1-foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .v1-foot-brand, .v1-foot-col { display: block; }
  .v1-foot-brand .v1-brand { color: #fff; }
  .v1-foot-brand .v1-brand small { color: var(--v1-navy-sub); }
  .v1-foot-brand p { margin: 12px 0 0; max-width: 340px; font: 400 13px/1.7 var(--v1-body); }
  .v1-foot-brand p + p { margin-top: 6px; color: #dceafa; }
  .v1-foot-col h2 { display: block; margin: 0 0 12px; font: 700 13px/1.4 var(--v1-head); color: #f7f9ff; }
  .v1-foot-col ul { display: block; }
  .v1-foot-col li + li::before { content: none; }
  .v1-foot-col li > a, .v1-foot-col li > button { min-height: 32px; padding: 0; font-size: 13px; }
  .v1-foot-col li > a:hover, .v1-foot-col li > button:hover { color: #fff; text-decoration: none; }
  .v1-foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; }
}
@media (min-width: 1024px) { .v1-foot-grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); } }
.v1-contact { position: relative; }
.v1-contact #contact-pop { color: var(--v1-ink); text-align: left; }   /* 남색 바닥글 위에 뜨는 흰 말풍선이라 글자는 원래 색 */

/* ---------- 휴대폰 하단 탭 + 더보기 시트 ---------- */
.v1-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around; align-items: center; gap: 4px;
  height: var(--v1-tab); padding: 0 8px env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--v1-line); }
@media (min-width: 1024px) { .v1-tabbar, .v1-sheet, .v1-sheet-back { display: none !important; } }
.v1-tabbar > a, .v1-tabbar > button { flex: 1; max-width: 76px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; border-radius: 9999px; background: none; color: var(--v1-sub); font: 500 11px/1 var(--v1-body); text-decoration: none; cursor: pointer; }
.v1-tabbar .material-symbols-outlined { font-size: 22px; }
/* 11/18: 현재 탭은 연한 알약 + 파란 아이콘·글자 (사이트 공통 site.css 와 같게 — MOB-001 라벨 있는 탭, COL-007) */
.v1-tabbar [aria-current="page"], .v1-tabbar [aria-expanded="true"] { background: #e6eefa; color: var(--v1-pri); font-weight: 700; }
.v1-tabbar [aria-current="page"] .material-symbols-outlined, .v1-tabbar [aria-expanded="true"] .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
/* 더보기를 연 동안엔 그 탭 하나만 알약 (알약은 한 번에 하나 — COL-007) */
.v1-tabbar:has([aria-expanded="true"]) [aria-current="page"] { background: none; color: var(--v1-pri); }
.v1-sheet-back { position: fixed; inset: 0; z-index: 58; background: rgba(20, 35, 74, .32); }
.v1-sheet { position: fixed; left: 0; right: 0; bottom: var(--v1-tab); z-index: 59; padding: 20px 16px 16px; border-radius: 24px 24px 0 0; background: #fff; border-top: 1px solid var(--v1-line); }
.v1-sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 9999px; background: var(--v1-line); }   /* 아래로 쓸어 닫는 손잡이 */
.v1-sheet[hidden], .v1-sheet-back[hidden] { display: none; }
.v1-sheet-title { margin: 0 0 12px; font: 700 14px/1.4 var(--v1-head); color: var(--v1-ink); }
.v1-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v1-sheet-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 16px;
  background: var(--v1-bg); color: var(--v1-ink); font: 600 12px/1.3 var(--v1-body); text-align: center; text-decoration: none; }
.v1-sheet-grid .material-symbols-outlined { font-size: 22px; color: var(--v1-pri); }
.v1-sheet-links { display: flex; justify-content: center; gap: 16px; margin-top: 12px; }
.v1-sheet-links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 12px/1 var(--v1-body); color: var(--v1-sub); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .v1-card, .v1-tarot, .v1-card-img > img, .v1-card-img > video, .v1-btn, .v1-dashes i { transition: none; }
}

/* ---------- '오늘의 운세' 카드 수정구슬 모션 (11/7 사장님 요청) ----------
   그림(card-fortune-globe.jpg) 위에 얇은 층을 겹쳐요: 은은한 보랏빛 숨결 · 천천히 도는 은하 빛 · 가운데 맥박 · 유리 위를 스치는 반사광 · 반짝이는 금빛 별 · 떠오르는 빛 알갱이.
   구슬 자리: 4:3 카드 칸 기준 가운데 (50%, 36.4%), 지름 = 칸 너비의 42% (그림을 가운데로 잘라 쓰는 object-fit: cover 계산).
   카드에 마우스를 올리면 그림과 같이 1.04배 커져요. '동작 줄이기' 설정이면 멈춘 채로 둬요. */
.v1-globe-fx { position: absolute; inset: 0; pointer-events: none; transition: transform .7s; }
@media (hover: hover) { .v1-card:hover .v1-globe-fx { transform: scale(1.04); } }
.g-ball { position: absolute; left: 29%; top: 8.4%; width: 42%; aspect-ratio: 1; }
/* 첫 화면 오른쪽 동그라미(.v1-orb, PC 만)도 같은 모션 (11/7 사장님 요청): 원본 card-fortune.jpg(512×279)를 156px 동그라미에 cover 로 채운 자리 —
   구슬 가운데 (49.96%, 43.5%) · 지름 62.6% → 왼쪽 18.65% · 위 12.2% */
.v1-orb .v1-globe-fx { inset: 8px; border-radius: 50%; overflow: hidden; }
.v1-orb .g-ball { left: 18.65%; top: 12.2%; width: 62.6%; }
.g-ball i { position: absolute; display: block; }
.g-aura { inset: -18%; border-radius: 50%; background: radial-gradient(circle closest-side, transparent 70%, rgba(150, 118, 255, .34) 76%, rgba(120, 150, 255, .14) 86%, transparent 100%);
  animation: g-breathe 4.2s ease-in-out infinite; }
/* 은하가 실제로 돌아요: 유리 반사광을 뺀 은하 원판(card-fortune-galaxy.webp)이 시계 반대 방향으로 천천히 돌고, 가운데는 조금 더 빨리 돌아요
   (나선 팔이 뒤따라가는 방향 = 진짜 은하처럼). 유리 반사광(card-fortune-gloss.webp)은 그 위에 고정. 아래쪽은 청동 받침 테를 가리지 않게 잘라요 */
.g-gal { inset: 0; border-radius: 50%; overflow: hidden;
  -webkit-mask: radial-gradient(circle closest-side, #000 82%, transparent 95%), linear-gradient(#000 84%, transparent 91%); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle closest-side, #000 82%, transparent 95%), linear-gradient(#000 84%, transparent 91%); mask-composite: intersect; }
/* 11/7 사장님 요청: 한 바퀴씩 돌지 않고 약 30° 만 천천히 돌았다가 돌아와요 (가운데는 조금 더 · 38°) */
.g-gal b { position: absolute; inset: 0; background: url(card-fortune-galaxy.webp) center / 100% 100% no-repeat; animation: g-sway 7s ease-in-out infinite alternate; }
.g-gal b + b { -webkit-mask: radial-gradient(circle closest-side, #000 26%, transparent 58%); mask: radial-gradient(circle closest-side, #000 26%, transparent 58%); animation-name: g-sway-core; }
.g-gloss { inset: 0; border-radius: 50%; background: url(card-fortune-gloss.webp) center / 100% 100% no-repeat; mix-blend-mode: screen; }
.g-core { inset: 33%; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(circle closest-side, rgba(255, 242, 255, .55), rgba(196, 156, 255, .26) 45%, transparent 100%);
  animation: g-pulse 3.4s ease-in-out infinite; }
.g-sheen { inset: 4%; border-radius: 50%; overflow: hidden; }
.g-sheen::before { content: ""; position: absolute; inset: -30% -70%;
  background: linear-gradient(112deg, transparent 43%, rgba(255, 255, 255, .42) 50%, transparent 57%); transform: translateX(-60%); animation: g-glint 7s ease-in-out 1.2s infinite; }
.g-st { width: 11%; aspect-ratio: 1; margin: -5.5% 0 0 -5.5%; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: radial-gradient(circle closest-side, #fff 0 22%, #ffdf96 48%, rgba(255, 204, 112, 0) 100%); animation: g-twinkle 2.8s ease-in-out infinite; }
.g-st.s1 { left: 30%; top: 30%; animation-delay: .2s; }
.g-st.s2 { left: 67%; top: 24%; animation-delay: 1.1s; width: 8%; }
.g-st.s3 { left: 73%; top: 58%; animation-delay: 1.9s; }
.g-st.s4 { left: 41%; top: 70%; animation-delay: .7s; width: 8%; }
.g-st.s5 { left: 22%; top: 55%; animation-delay: 2.4s; width: 7%; }
.g-st.s6 { left: 56%; top: 42%; animation-delay: 1.5s; width: 7%; }
.g-st.s7 { left: 92%; top: 12%; animation-delay: .4s; width: 13%; }   /* 구슬 바깥 반짝임 두 개 */
.g-st.s8 { left: 4%; top: 22%; animation-delay: 2s; width: 9%; }
.g-mote { width: 3.2%; aspect-ratio: 1; border-radius: 50%; background: #ffe2a4; box-shadow: 0 0 6px 2px rgba(255, 214, 140, .7); opacity: 0;
  animation: g-rise 5.4s ease-out infinite; }
.g-mote.m1 { left: 8%; top: 92%; }
.g-mote.m2 { left: 90%; top: 86%; animation-delay: 1.8s; }
.g-mote.m3 { left: 30%; top: 100%; animation-delay: 3.6s; width: 2.4%; }
@keyframes g-breathe { 0%, 100% { opacity: .5; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.035); } }
@keyframes g-sway { from { transform: rotate(0deg); } to { transform: rotate(-30deg); } }
@keyframes g-sway-core { from { transform: rotate(0deg); } to { transform: rotate(-38deg); } }
@keyframes g-pulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes g-glint { 0% { transform: translateX(-60%); } 26%, 100% { transform: translateX(60%); } }
@keyframes g-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: .9; transform: scale(.85) rotate(60deg); } }
@keyframes g-rise { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-1400%); } }
@media (prefers-reduced-motion: reduce) {
  .v1-globe-fx { transition: none; }
  .v1-globe-fx i, .g-gal b, .g-sheen::before { animation: none !important; }
  .g-sheen, .g-st, .g-mote { display: none; }
}

/* ---------- LAB 자료실 · 내 정원 카드 모션 (11/7 사장님 요청) ----------
   두 카드는 휴대폰에선 정사각, 태블릿부터 16:9 라서 그림(1200×655)이 좌우로 잘려요.
   그래서 그림과 똑같은 크기의 칸(.fx-img: 높이 100% · 1200/655 비율 · 가운데)을 만들고, 그 안에 그림 좌표(%)로 효과를 붙여요 → 어느 화면에서도 같은 자리.
   크기는 그 칸 기준 cqw·cqh. 카드에 마우스를 올리면 그림과 같이 1.04배 커져요. '동작 줄이기' 설정이면 멈춰요. */
.v1-lab-fx, .v1-garden-fx, .v1-garden-front { position: absolute; inset: 0; pointer-events: none; transition: transform .7s; }
@media (hover: hover) { .v1-card:hover .v1-lab-fx, .v1-card:hover .v1-garden-fx { transform: scale(1.04); } }
.fx-img { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1200 / 655; transform: translateX(-50%); container-type: size; }
.fx-img i { position: absolute; display: block; }

/* LAB: 분홍 물약에서 기포가 올라오고, 입구에서 김이 피어오르고, 물약 빛과 받침 불빛이 숨 쉬어요 */
.l-glow { left: calc(49.75% - 8cqw); top: calc(61% - 13cqh); width: 16cqw; height: 26cqh; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 120, 226, .6), rgba(255, 120, 226, .2) 60%, transparent); animation: l-glow 3.2s ease-in-out infinite; }
.l-b { left: var(--x); top: 68%; width: var(--s); aspect-ratio: 1; margin-left: calc(var(--s) / -2); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #fff 0 20%, rgba(255, 218, 247, .9) 42%, rgba(255, 128, 222, .3) 74%, transparent 76%);
  box-shadow: 0 0 .6cqw rgba(255, 150, 232, .85); animation: l-rise var(--d) ease-in var(--dl) infinite; }
.l-b.b1 { --x: 48.6%; --s: 1.1cqw; --h: 22cqh; --d: 3.2s; --dl: 0s;   --sx: .4cqw; }
.l-b.b2 { --x: 51.2%; --s: .8cqw;  --h: 33cqh; --d: 3.9s; --dl: .8s;  --sx: -.5cqw; }
.l-b.b3 { --x: 45.8%; --s: .7cqw;  --h: 12cqh; --d: 2.6s; --dl: 1.4s; --sx: .3cqw; }
.l-b.b4 { --x: 53.6%; --s: 1cqw;   --h: 14cqh; --d: 2.9s; --dl: .3s;  --sx: -.4cqw; }
.l-b.b5 { --x: 50%;   --s: .65cqw; --h: 39cqh; --d: 4.6s; --dl: 2s;   --sx: .2cqw; }
.l-b.b6 { --x: 47%;   --s: .55cqw; --h: 9cqh;  --d: 2.3s; --dl: 2.5s; --sx: .5cqw; }
.l-b.b7 { --x: 52%;   --s: .75cqw; --h: 20cqh; --d: 3.4s; --dl: 1.7s; --sx: -.3cqw; }
.l-v { left: calc(50% - 3.5cqw); top: calc(24.4% - 3.5cqw); width: 7cqw; aspect-ratio: 1; border-radius: 50%; opacity: 0; filter: blur(2px);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 222, 246, .4) 50%, transparent); animation: l-steam 4.2s ease-out infinite; }
.l-v.v2 { --vx: 1.6cqw; animation-delay: 1.4s; }
.l-v.v3 { --vx: 3cqw; animation-delay: 2.8s; }
.l-ring { left: calc(50% - 10cqw); top: calc(79.4% - 3cqh); width: 20cqw; height: 6cqh; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, transparent 52%, rgba(120, 236, 255, .6) 78%, transparent 100%); animation: l-ring 2.4s ease-in-out infinite; }
.l-sp { width: 1.4cqw; aspect-ratio: 1; margin: -.7cqw 0 0 -.7cqw; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: radial-gradient(closest-side, #fff 0 25%, #ffb3ec 55%, transparent); animation: g-twinkle 2.6s ease-in-out infinite; }
.l-sp.p1 { left: 56.7%; top: 45.8%; }
.l-sp.p2 { left: 43.3%; top: 39.7%; animation-delay: .9s; }
.l-sp.p3 { left: 57.5%; top: 61%; animation-delay: 1.7s; width: 1cqw; }
.l-sp.p4 { left: 46.7%; top: 32%; animation-delay: 2.2s; width: 1.1cqw; }
@keyframes l-glow { 0%, 100% { opacity: .4; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes l-rise { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: .95; } 72% { opacity: .85; }
  100% { transform: translate(var(--sx, 0), calc(var(--h) * -1)) scale(1); opacity: 0; } }
@keyframes l-steam { 0% { transform: translate(0, 3cqh) scale(.4); opacity: 0; } 25% { opacity: .75; } 100% { transform: translate(var(--vx, -1.6cqw), -22cqh) scale(1.7); opacity: 0; } }
@keyframes l-ring { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* 내 정원: 섬이 둥실 떠 있고(그림과 효과가 같이 오르내림), 가게 창문이 깜빡이고, 연못에 물결, 나비 두 마리, 반짝이는 금빛, 앞쪽으로 흘러가는 구름 */
.gd-float, .v1-garden-fx { scale: 1.035; animation: gd-float 6.5s ease-in-out infinite; }
.gd-win { left: calc(54.8% - 4.5cqw); top: calc(39.7% - 6.5cqh); width: 9cqw; height: 13cqh; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 200, 112, .6), rgba(255, 176, 90, .2) 60%, transparent); animation: gd-flicker 3.4s ease-in-out infinite; }
.gd-rip { left: calc(37.7% - 3.5cqw); top: calc(49.8% - 2.5cqh); width: 7cqw; height: 5cqh; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); opacity: 0;
  animation: gd-rip 2.8s ease-out infinite; }
.gd-rip.r2 { animation-delay: 1.4s; }
.gd-bf { width: 2.4cqw; height: 2cqw; margin: -1cqw 0 0 -1.2cqw; animation: gd-fly1 7s ease-in-out infinite; }
.gd-bf::before, .gd-bf::after { content: ""; position: absolute; top: 0; width: 50%; height: 100%; border-radius: 60% 60% 50% 50%; transform-origin: 100% 60%;
  background: radial-gradient(circle at 40% 40%, #fff 0 18%, var(--w1) 45%, var(--w2) 100%); animation: gd-flap .18s ease-in-out infinite alternate; }
.gd-bf::before { left: 0; }
.gd-bf::after { left: 50%; transform-origin: 0 60%; border-radius: 60% 60% 50% 50%; }
.gd-bf.f1 { left: 32.9%; top: 58%; --w1: #ffc2e2; --w2: #ff86c4; }
.gd-bf.f2 { left: 70.8%; top: 48.9%; --w1: #fff4b0; --w2: #ffcf54; animation-name: gd-fly2; animation-duration: 8.5s; }
.gd-gl { width: 1.3cqw; aspect-ratio: 1; margin: -.65cqw 0 0 -.65cqw; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  background: radial-gradient(closest-side, #fff 0 25%, #ffe08f 55%, transparent); animation: g-twinkle 3s ease-in-out infinite; }
.gd-gl.l1 { left: 43.3%; top: 32%; }
.gd-gl.l2 { left: 63.3%; top: 26%; animation-delay: .8s; }
.gd-gl.l3 { left: 58.8%; top: 65.6%; animation-delay: 1.6s; width: 1cqw; }
.gd-gl.l4 { left: 28.8%; top: 50.4%; animation-delay: 2.2s; }
.gd-gl.l5 { left: 73.8%; top: 45.8%; animation-delay: 1.2s; width: 1cqw; }
.v1-garden-front { container-type: size; overflow: hidden; }
.gd-cl { position: absolute; display: block; width: 46cqw; height: 15cqh; opacity: .72; filter: blur(2px); animation: gd-drift 40s linear infinite;
  background: radial-gradient(ellipse 30% 45% at 28% 62%, #fff 0 55%, transparent 100%), radial-gradient(ellipse 30% 55% at 55% 45%, #fff 0 55%, transparent 100%),
    radial-gradient(ellipse 26% 42% at 80% 64%, #fff 0 55%, transparent 100%); }
.gd-cl.c1 { top: 2%; animation-delay: -14s; }
.gd-cl.c2 { top: 82%; animation-duration: 56s; animation-delay: -36s; opacity: .62; }
@keyframes gd-float { 0%, 100% { translate: 0 1.2%; } 50% { translate: 0 -1.2%; } }
@keyframes gd-flicker { 0%, 100% { opacity: .65; } 20% { opacity: 1; } 34% { opacity: .78; } 52% { opacity: .95; } 70% { opacity: .7; } 84% { opacity: 1; } }
@keyframes gd-rip { 0% { transform: scale(.15); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes gd-flap { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
@keyframes gd-fly1 { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 25% { transform: translate(3cqw, -4cqh) rotate(8deg); } 50% { transform: translate(6cqw, -1cqh) rotate(-4deg); }
  75% { transform: translate(2.5cqw, 2.5cqh) rotate(6deg); } }
@keyframes gd-fly2 { 0%, 100% { transform: translate(0, 0) rotate(6deg); } 30% { transform: translate(-4cqw, -3cqh) rotate(-8deg); } 60% { transform: translate(-6.5cqw, 1.5cqh) rotate(4deg); }
  80% { transform: translate(-2cqw, 3cqh) rotate(-5deg); } }
@keyframes gd-drift { from { transform: translateX(-50cqw); } to { transform: translateX(110cqw); } }
@media (prefers-reduced-motion: reduce) {
  .v1-lab-fx, .v1-garden-fx { transition: none; }
  .gd-float, .v1-garden-fx, .v1-lab-fx i, .v1-garden-fx i, .gd-bf::before, .gd-bf::after, .gd-cl { animation: none !important; }
  .l-b, .l-v, .l-sp, .gd-rip, .gd-gl, .gd-bf, .v1-garden-front { display: none; }
}

/* ---------- 홈 배경 음악 (11/9 사장님 요청, assets/home-bgm.js) ----------
   왼쪽 아래 둥근 음표 단추: 꺼져 있으면 음표, 흐르는 동안엔 막대 세 개가 춤춰요. 곡이 시작할 때 노래 제목이 잠깐 펼쳐져요.
   누르면 노래 목록(11/18): PC 는 단추 위 작은 카드, 휴대폰은 더보기와 같은 아래 시트.
   목록 안에서 채운 단추는 재생/일시정지 하나 (COL-007) · 셔플 켜짐 = 파란 1px 선 + 체크 · 지금 노래 = 파란 글자 + 막대
   휴대폰은 아래 탭 바 바로 위, PC 는 화면 왼쪽 아래 */
.v1-bgm { position: fixed; left: 16px; bottom: calc(var(--v1-tab) + 12px); z-index: 55; display: inline-flex; align-items: center; gap: 0;
  min-width: 44px; height: 44px; padding: 0 13px; border: 1px solid var(--v1-line); border-radius: 999px; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--v1-sub); box-shadow: 0 10px 26px -14px rgba(20, 35, 74, .45);
  font: 600 12px/1.25 var(--v1-body); cursor: pointer; transition: color .2s, border-color .2s, gap .4s; }
@media (min-width: 1024px) { .v1-bgm { left: 24px; bottom: 24px; } }
.v1-bgm:hover { border-color: #b9cde9; color: var(--v1-pri); }
.v1-bgm:focus-visible { outline: 2px solid var(--v1-pri); outline-offset: 3px; }
.v1-bgm.is-on, .v1-bgm[aria-expanded="true"] { color: var(--v1-pri); }
.v1-bgm[aria-expanded="true"] { border-color: var(--v1-pri); }
.v1-bgm-note { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v1-bgm-eq { display: none; align-items: flex-end; gap: 2px; width: 16px; height: 16px; }
.v1-bgm-eq i, .v1-bgm-st i { width: 3px; height: 35%; border-radius: 2px; background: currentColor; animation: v1-bgm-eq 1.1s ease-in-out infinite; }
.v1-bgm-eq i:nth-child(2), .v1-bgm-st i:nth-child(2) { animation-delay: -.35s; }
.v1-bgm-eq i:nth-child(3), .v1-bgm-st i:nth-child(3) { animation-delay: -.7s; }
.v1-bgm.is-on .v1-bgm-note { display: none; }
.v1-bgm.is-on .v1-bgm-eq { display: inline-flex; }
.v1-bgm-t { max-width: 0; overflow: hidden; white-space: nowrap; text-align: left; color: var(--v1-ink); transition: max-width .5s ease, opacity .4s; opacity: 0; }
.v1-bgm-t small { display: block; font-size: 10px; font-weight: 600; color: var(--v1-sub); }
.v1-bgm.show-title { gap: 10px; }
.v1-bgm.show-title .v1-bgm-t { max-width: 240px; opacity: 1; }
@keyframes v1-bgm-eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* 노래 목록 — 휴대폰: 아래 시트 (.v1-sheet 와 같은 모양, 탭 바 위) */
.v1-bgm-back { position: fixed; inset: 0; z-index: 58; background: rgba(20, 35, 74, .32); }
.v1-bgm-panel { position: fixed; left: 0; right: 0; bottom: var(--v1-tab); z-index: 59; padding: 20px 16px 12px; border-radius: 24px 24px 0 0;
  background: #fff; border-top: 1px solid var(--v1-line); color: var(--v1-ink); font-family: var(--v1-body); animation: v1-bgm-in .2s ease-out; }
.v1-bgm-panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 9999px; background: var(--v1-line); }
.v1-bgm-panel[hidden], .v1-bgm-back[hidden] { display: none; }
/* 목록을 연 동안엔 아래 탭 '홈'의 연한 알약을 풀어요 (더보기 시트와 같은 규칙 — 알약은 한 번에 하나, COL-007) */
body:has(.v1-bgm-panel:not([hidden])) .v1-tabbar [aria-current="page"] { background: none; color: var(--v1-pri); }
@keyframes v1-bgm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* PC: 음표 단추 바로 위 카드 (가림막 없음) */
@media (min-width: 1024px) {
  .v1-bgm-back { display: none !important; }
  .v1-bgm-panel { left: 24px; right: auto; bottom: 80px; width: 340px; padding: 16px 16px 8px; border: 1px solid var(--v1-line); border-radius: 20px;
    box-shadow: 0 24px 48px -24px rgba(20, 35, 74, .35); }
  .v1-bgm-panel::before { display: none; }
}
.v1-bgm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -6px 12px 0; }
.v1-bgm-h { margin: 0; font: 700 16px/1.4 var(--v1-head); color: var(--v1-ink); }
.v1-bgm-count { margin-left: 8px; font: 500 13px/1 var(--v1-body); color: var(--v1-sub); }
.v1-bgm-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--v1-sub); cursor: pointer; }
.v1-bgm-x:hover { background: var(--v1-bg); color: var(--v1-ink); }
.v1-bgm-panel .material-symbols-outlined { font-size: 22px; line-height: 1; }
/* 재생(채움) · 다음 곡 · 셔플 — 한 줄, 높이 48px */
.v1-bgm-ctl { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.v1-bgm-play { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--v1-pri); color: #fff; font: 700 15px/1 var(--v1-body); cursor: pointer; transition: background .15s; }
.v1-bgm-play:hover { background: var(--v1-pri-d); }
.v1-bgm-play .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
.v1-bgm-next { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--v1-line); border-radius: 50%; background: #fff; color: var(--v1-ink); cursor: pointer; }
.v1-bgm-next:hover { background: var(--v1-bg); }
.v1-bgm-shuf { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px 0 14px; border: 1px solid var(--v1-line); border-radius: 999px;
  background: #fff; color: var(--v1-sub); font: 600 14px/1 var(--v1-body); cursor: pointer; transition: border-color .15s, color .15s; }
.v1-bgm-shuf:hover { background: var(--v1-bg); }
.v1-bgm-shuf[aria-pressed="true"] { border-color: var(--v1-pri); color: var(--v1-pri); }
.v1-bgm-shuf .v1-bgm-ck { display: none; font-size: 18px; margin-right: -2px; }
.v1-bgm-shuf[aria-pressed="true"] .v1-bgm-ck { display: inline-block; }
.v1-bgm-ctl [hidden] { display: none; }
/* 노래 줄: 번호 · 제목 · (지금 노래면) 막대 — 줄 사이 1px 선 */
.v1-bgm-list { list-style: none; margin: 0; padding: 0; max-height: min(320px, calc(100dvh - var(--v1-tab) - 200px)); overflow-y: auto; overscroll-behavior: contain; }
.v1-bgm-list li + li { border-top: 1px solid var(--v1-line); }
.v1-bgm-row { width: 100%; min-height: 52px; display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 10px; padding: 0 8px 0 4px; border: 0; border-radius: 12px;
  background: none; color: var(--v1-ink); font: 600 15px/1.35 var(--v1-body); text-align: left; cursor: pointer; }
.v1-bgm-row:hover { background: var(--v1-bg); }
.v1-bgm-n { font: 500 13px/1 var(--v1-body); color: var(--v1-sub); font-variant-numeric: tabular-nums; text-align: center; }
.v1-bgm-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v1-bgm-st { display: none; align-items: flex-end; gap: 2px; width: 16px; height: 16px; }
.v1-bgm-row.is-cur { color: var(--v1-pri); font-weight: 700; }
.v1-bgm-row.is-cur .v1-bgm-n { color: var(--v1-pri); }
.v1-bgm-row.is-cur .v1-bgm-st { display: inline-flex; }
.v1-bgm-panel:not(.is-on) .v1-bgm-st i { animation: none; height: 45%; }   /* 멈춰 있으면 막대도 멈춤 */
.v1-bgm-x:focus-visible, .v1-bgm-play:focus-visible, .v1-bgm-next:focus-visible, .v1-bgm-shuf:focus-visible, .v1-bgm-row:focus-visible { outline: 2px solid var(--v1-pri); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .v1-bgm-eq i, .v1-bgm-st i { animation: none; height: 70%; }
  .v1-bgm, .v1-bgm-t { transition: none; }
  .v1-bgm-panel { animation: none; }
}
