/* =========================================================================
   방문 가이드 / 나의 활동 기록 공용 스타일
   - 색은 quad_user.css 의 변수(--card, --border, --muted, --accent ...)를 따라가므로
     라이트, 다크, 크리스마스 테마가 켜져 있어도 꺼져 있어도 자연스럽게 바뀝니다.
   - --pine, --gold 는 크리스마스 테마(xmas.css)가 켜졌을 때만 정의되고, 꺼져 있으면 아래 기본값을 씁니다.
   ========================================================================= */

/* ---------- 눌러서 이동하는 카드 (홈 "처음 오시나요?", 마이페이지 "나의 활동 기록") ---------- */
.fxNav{
    display:flex; align-items:center; gap:12px;
    padding:14px 16px;
    color:var(--fg); text-decoration:none;
}
.fxNav:hover{ color:var(--fg); }
.fxNav b{ display:block; font-size:14.5px; }
.fxNav .fxSub{ display:block; font-size:12px; color:var(--muted); margin-top:1px; }
.fxNav .fxText{ min-width:0; }

/* 왼쪽 아이콘 타일: 단색 초록 바탕에 흰 아이콘(다크에서는 금색 아이콘) */
.fxTile{
    width:46px; height:46px; flex:none; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    background:var(--pine,#0f3d2e); color:#fff;
}
.fxTile svg{
    display:block; flex:none; width:24px; height:24px;
    fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
[data-theme="dark"] .fxTile{
    background:#14523a; color:var(--gold,#e3c26e);
    box-shadow:inset 0 0 0 1px rgba(227,194,110,.45), 0 0 14px rgba(227,194,110,.18);
}

/* 오른쪽 "보기" 버튼: 눌러야 하는 카드라는 것을 분명히 */
.fxGo{
    margin-left:auto; flex:none;
    font-size:12.5px; font-weight:700; white-space:nowrap;
    padding:8px 13px; border-radius:999px;
    background:var(--accent,#b3202f); color:#fff;
}

/* ---------- 공통 ---------- */
.fxLead{ margin:-4px 0 14px; font-size:13px; color:var(--muted); line-height:1.6; }
.fxStack{ display:flex; flex-direction:column; gap:12px; }

/* ---------- 방문 가이드 ---------- */
.fxInfoRow{ display:flex; gap:12px; align-items:flex-start; padding:13px 14px; border-bottom:1px solid var(--hairline,var(--border)); }
.fxInfoRow:last-child{ border-bottom:0; }
.fxIc{
    width:34px; height:34px; flex:none; border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    background:color-mix(in oklab, var(--gold,#b98f35) 16%, var(--card)); color:var(--gold,#b98f35);
}
.fxIc svg{ display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.fxK{ font-size:12px; color:var(--muted); }
.fxV{ font-weight:700; margin-top:1px; }
.fxV small{ display:block; font-weight:400; font-size:12px; color:var(--muted); margin-top:2px; }

.fxSteps{ counter-reset:fxs; padding-top:16px; }
.fxStep{ display:flex; gap:14px; padding:0 14px 18px; position:relative; }
.fxStep:last-child{ padding-bottom:14px; }
.fxStep::before{
    counter-increment:fxs; content:counter(fxs);
    width:28px; height:28px; flex:none; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:13px; color:#fff; background:var(--pine,#0f3d2e);
    position:relative; z-index:1;
}
[data-theme="dark"] .fxStep::before{ background:var(--accent,#e0505e); }
.fxStep::after{ content:""; position:absolute; left:27px; top:28px; bottom:0; width:2px; background:var(--hairline,var(--border)); }
.fxStep:last-child::after{ display:none; }
.fxStep b{ display:block; font-size:14px; }
.fxStep span{ display:block; font-size:12.5px; color:var(--muted); margin-top:2px; line-height:1.55; }

.fxTerms{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.fxTerm{ padding:12px; }
.fxTerm b{ display:block; font-size:15px; }
.fxTerm span{ display:block; font-size:12px; color:var(--muted); margin-top:4px; line-height:1.5; }

.fxQ{ border-bottom:1px solid var(--hairline,var(--border)); }
.fxQ:last-child{ border-bottom:0; }
.fxQ button{
    width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px;
    padding:14px; background:none; border:0; color:var(--fg); font:inherit; font-weight:700; text-align:left; cursor:pointer;
}
.fxQ button::after{
    content:""; width:8px; height:8px; flex:none; margin-right:2px;
    border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
    transform:rotate(45deg); transition:transform .2s;
}
.fxQ.open button::after{ transform:rotate(225deg); }
.fxQ p{ display:none; margin:0; padding:0 14px 14px; font-size:13px; color:var(--muted); line-height:1.65; }
.fxQ.open p{ display:block; }

.fxCta{ padding:18px 16px; display:flex; flex-direction:column; gap:10px; text-align:center; }
.fxCta b{ font-size:17px; }
.fxCta span{ font-size:12.5px; color:var(--muted); }

/* ---------- 나의 활동 기록 ---------- */
.fxSum{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.fxSum .card{ margin:0; padding:12px; }
.fxSum .k{ font-size:12px; color:var(--muted); }
.fxSum .v{ font-size:21px; font-weight:800; line-height:1.15; margin-top:4px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.fxSum .v small{ font-size:12px; font-weight:700; margin-left:2px; }

.fxChart{ padding:14px 12px 8px; }
.fxChart svg{ display:block; width:100%; height:auto; }

/* 월별 랭킹 슬라이드: 6개월이 한 장, 옆으로 밀어서 넘긴다 */
.fxTrack{
    display:flex; overflow-x:auto; overflow-y:hidden;
    scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
    scrollbar-width:none; overscroll-behavior-x:contain;
    outline:none;
}
.fxTrack::-webkit-scrollbar{ display:none; }
.fxTrack:focus-visible{ box-shadow:0 0 0 2px var(--accent,#b3202f); border-radius:8px; }
.fxPage{ flex:0 0 100%; scroll-snap-align:start; scroll-snap-stop:always; }
.fxChart text.yr{ font-size:9.5px; opacity:.75; }

.fxTrack{ cursor:grab; }
.fxTrack.grabbing{ cursor:grabbing; user-select:none; }
.fxSlideInfo{ text-align:center; min-width:0; padding:4px 2px 8px; }
.fxSlideInfo b{ display:block; font-size:12.5px; font-variant-numeric:tabular-nums; }
.fxDots{ display:flex; gap:6px; justify-content:center; margin-top:6px; flex-wrap:wrap; }
.fxDot{
    width:7px; height:7px; padding:0; border:0; border-radius:50%;
    background:var(--border); cursor:pointer;
}
.fxDot.on{ background:var(--accent,#b3202f); width:18px; border-radius:99px; }
.fxChart .ax{ stroke:var(--border); stroke-width:1; }
.fxChart .bar1{ fill:var(--pine,#1d5a45); }
[data-theme="dark"] .fxChart .bar1{ fill:#2c7a5a; }
.fxChart .bar2{ fill:var(--accent,#b3202f); }
.fxChart text{ fill:var(--muted); font-size:10.5px; }
.fxChart text.v{ fill:var(--fg); font-weight:700; }
.fxChart text.rk{ fill:var(--gold,#b98f35); font-weight:700; }
.fxLeg{ display:flex; gap:14px; padding:0 6px 10px; font-size:11.5px; color:var(--muted); }
.fxLeg i{ display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; vertical-align:-1px; }
.fxLeg i.past{ background:var(--pine,#1d5a45); }
.fxLeg i.now{ background:var(--accent,#b3202f); }
[data-theme="dark"] .fxLeg i.past{ background:#2c7a5a; }
.fxEmpty{ padding:26px 14px; text-align:center; color:var(--muted); font-size:13px; }

.fxProg{ padding:14px 16px; }
.fxProg + .fxProg{ border-top:1px solid var(--hairline,var(--border)); }
.fxProg .t{ display:flex; justify-content:space-between; font-weight:700; font-size:14px; margin-bottom:8px; }
.fxBar{ height:12px; border-radius:999px; background:var(--chip-bg); overflow:hidden; }
.fxBar span{ display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--accent,#b3202f),var(--gold,#c9a24a)); }
