/* 오늘의 밸런스 게임(2026-10-18 개발자3, 10/19 본 화면). 공용 /psych/style.css 위에 덮는다. 본문 14px 이상. */
.stage.v2 { max-width: 1040px; padding: 0 0 40px; }
.v-msg { font-size: 15px; line-height: 1.7; color: #3c3c3c; text-align: center; padding: 60px 20px; word-break: keep-all; }
.v-eyebrow { font-size: 15px; font-weight: 800; color: #E8590C; }
.v-streak { display: inline-block; font-size: 14px; font-weight: 800; color: #9A3412; background: #FFE2D1; border-radius: 999px; padding: 3px 10px; margin-top: 6px; }
.v-question { font-size: 22px; font-weight: 900; line-height: 1.4; color: #111827; margin: 6px 0 0; word-break: keep-all; }
.v-date { font-size: 14px; font-weight: 700; color: #6B7280; margin-top: 6px; }

/* ---- (옛 PC 장면 배너 - 10/20 폐기, .v-scene은 항상 숨김) */
.v-scene { display: none; position: relative; margin: 8px 16px 0; border-radius: 26px; overflow: hidden; aspect-ratio: 2 / 1; background: #EEF4FB; }
.v-scene-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.v-scene-shade { position: absolute; left: 30%; right: 30%; top: 0; bottom: 0; background: radial-gradient(closest-side, rgba(255,255,255,.92), rgba(255,255,255,0)); }
.v-scene-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; text-align: center; }
.v-scene .v-question { font-size: 34px; text-shadow: 0 2px 0 #fff, 0 0 12px #fff; }
.v-bubble { position: absolute; top: 7%; max-width: 26%; background: #fff; border: 3px solid #111827; border-radius: 26px; padding: 12px 16px; font-size: 18px; font-weight: 900; line-height: 1.35; color: #111827; word-break: keep-all; text-align: center; }
.v-bubble.a { left: 5%; } .v-bubble.b { right: 5%; }
.v-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.v-pill { font-family: inherit; border: 3px solid #111827; border-radius: 22px; padding: 14px 10px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
    box-shadow: 0 5px 0 #111827; transition: transform .15s, box-shadow .15s, opacity .2s; }
.v-pill.a { background: #3B9BFF; color: #fff; } .v-pill.b { background: #FFD43B; color: #3B2F00; }
.v-pill:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 8px 0 #111827; }
.v-pill:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 #111827; }
.v-pill:disabled { cursor: default; }
.v-pill-label { font-size: 22px; font-weight: 900; word-break: keep-all; line-height: 1.3; }
.v-pill-pct { font-size: 18px; font-weight: 900; min-height: 1em; }
.v-pill.picked { outline: 4px solid #E8590C; outline-offset: 3px; }
.v-pill.dim { opacity: .55; }

/* ---- A·B 카드(PC·휴대폰 공통, 장면 그림 한 장을 반씩) */
.v-cards { padding: 8px 16px 0; }
.v-head { text-align: center; background: #EEF4FB; border-radius: 22px; padding: 14px 12px 16px; }
.v-cardrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.v-card { font-family: inherit; color: inherit; background: #fff; border: 2.5px solid; border-radius: 18px; overflow: hidden; padding: 0 0 12px; cursor: pointer; text-align: center;
    transition: transform .18s cubic-bezier(.2,1.4,.4,1), opacity .2s, box-shadow .2s; }
.v-card.a { border-color: #3B82F6; } .v-card.b { border-color: #E64980; }
.v-card:disabled { cursor: default; }
.v-card.picked { box-shadow: 0 0 0 4px #111827; transform: scale(1.03); }
.v-card.dim { opacity: .5; }
.v-card-head { font-size: 16px; font-weight: 900; color: #fff; padding: 8px 6px; }
.v-card.a .v-card-head { background: #2F6FD6; } .v-card.b .v-card-head { background: #D6336C; }
.v-card-img { position: relative; aspect-ratio: 1 / 1; background-repeat: no-repeat; background-size: 200% 100%; }
.v-card-img.a { background-color: #DCEBFC; background-position: left center; } .v-card-img.b { background-color: #FCE4EC; background-position: right center; }
.v-card-pct { position: absolute; bottom: 8px; font-size: 14px; font-weight: 900; color: #fff; border-radius: 10px; padding: 4px 8px; }
.v-card-img.a .v-card-pct { left: 8px; background: #2F6FD6; } .v-card-img.b .v-card-pct { right: 8px; background: #D6336C; }
.v-card-title { font-size: 17px; font-weight: 900; line-height: 1.4; padding: 10px 8px 0; word-break: keep-all; }
.v-card.a .v-card-title { color: #1E4FA8; } .v-card.b .v-card-title { color: #B0245A; }
.v-card-text { font-size: 14px; font-weight: 700; color: #4B5563; padding: 4px 8px 0; word-break: keep-all; }
.v-vs { position: absolute; left: 50%; top: 110px; transform: translate(-50%, -50%); background: #111827; color: #fff; font-size: 16px; font-weight: 900; border-radius: 999px; padding: 6px 10px; pointer-events: none; }

.v-friend { margin: 12px 16px 0; font-size: 15px; font-weight: 700; color: #0C447C; background: #E6F1FB; border-radius: 14px; padding: 12px 14px; line-height: 1.5; text-align: center; word-break: keep-all; }
.v-note { margin: 12px 16px 0; font-size: 14px; color: #6E6E6E; line-height: 1.6; text-align: center; word-break: keep-all; }

/* ---- 아래 영역 */
.v-layout { padding: 0 16px; }
.v-box { background: #fff; border: 1.5px solid #E5E7EB; border-radius: 20px; padding: 16px; margin-top: 16px; }
.v-box-title { font-size: 18px; font-weight: 900; color: #111827; margin-bottom: 12px; }
.v-total { text-align: center; font-size: 15px; font-weight: 800; color: #374151; }
.v-friendcmp { text-align: center; font-size: 15px; font-weight: 800; color: #0C447C; background: #E6F1FB; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.v-idrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.v-idimg { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; background-repeat: no-repeat; background-size: 200% 100%; }
.v-idimg.a { background-color: #DCEBFC; background-position: left center; } .v-idimg.b { background-color: #FCE4EC; background-position: right center; }
.v-idlabel { font-size: 14px; font-weight: 800; color: #6B7280; }
.v-idname { font-size: 21px; font-weight: 900; color: #111827; line-height: 1.35; word-break: keep-all; }
.v-idsub { font-size: 14px; font-weight: 700; color: #4B5563; margin-top: 2px; word-break: keep-all; }
.v-result { animation: vPop .5s cubic-bezier(.2,1.5,.4,1) backwards; }
@keyframes vPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.v-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-share-grid button { font-family: inherit; font-size: 15px; font-weight: 800; border: 0; border-radius: 14px; padding: 14px 8px; cursor: pointer; word-break: keep-all; }
.v-share-grid .kakao { background: #FEE500; color: #191919; }
.v-share-grid .insta { background: #D6336C; color: #fff; }
.v-share-grid .link { background: #DCEBFC; color: #1E4FA8; }
.v-share-grid .more { background: #F3F4F6; color: #374151; }

/* ---- 댓글 */
.v-cm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-cm-head { font-size: 16px; font-weight: 900; color: #111827; }
.v-cm-head b { font-weight: 900; }
.v-cm-split { margin-left: 8px; font-size: 14px; font-weight: 700; color: #9CA3AF; }
.v-cm-split .a { color: #2F6FD6; } .v-cm-split .b { color: #D6336C; }
.v-sort { display: flex; gap: 2px; flex-shrink: 0; }
.v-sort button { font-family: inherit; font-size: 14px; font-weight: 700; color: #9CA3AF; background: none; border: 0; padding: 4px 6px; cursor: pointer; }
.v-sort button.on { color: #111827; font-weight: 900; }
.v-side { font-size: 13px; font-weight: 800; }
.v-side.a { color: #2F6FD6; } .v-side.b { color: #D6336C; }
/* 쓰기 칸: 처음엔 한 줄, 누르면(또는 글이 있으면) 커지고 아래 줄이 나온다 */
.v-write { margin-top: 12px; }
.v-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.v-chips:empty { display: none; }
.v-chips::-webkit-scrollbar { display: none; }
.v-chips button { flex-shrink: 0; font-family: inherit; font-size: 13.5px; font-weight: 700; color: #4B5563; background: #F3F4F6; border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; white-space: nowrap; }
.v-chips button:hover { background: #E5E7EB; }
.v-write textarea { display: block; width: 100%; font-family: inherit; font-size: 15px; line-height: 1.5; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 10px 12px;
    resize: none; box-sizing: border-box; background: #F9FAFB; height: 44px; transition: height .15s, background .15s; }
.v-write.open textarea { height: 96px; background: #fff; border-color: #9CA3AF; outline: none; }
.v-write-row { display: none; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.v-write.open .v-write-row { display: flex; }
.v-write-as { font-size: 13px; font-weight: 700; color: #6B7280; margin-right: auto; }
.v-write-err { font-size: 13px; color: #C92A2A; font-weight: 700; }
.v-count { font-size: 13px; color: #9CA3AF; }
.v-submit { font-family: inherit; font-size: 14px; font-weight: 900; color: #fff; background: #111827; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.v-lock { margin-top: 12px; font-size: 14px; font-weight: 700; color: #6B7280; text-align: center; background: #F9FAFB; border-radius: 12px; padding: 12px; }
/* 댓글 한 개: 작은 동그라미 + 이름줄 + 본문 + 글자형 반응 한 줄 */
.v-cm-list { list-style: none; margin: 6px 0 0; padding: 0; }
.v-cm { padding: 14px 0; border-top: 1px solid #F1F1EE; }
.v-cm:first-child { border-top: 0; }
.v-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.v-dot.a { background: #3B82F6; } .v-dot.b { background: #E64980; }
.v-cm-body { flex: 1; min-width: 0; }
.v-cm-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9CA3AF; min-width: 0; }
.v-cm-name { font-weight: 800; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-cm-time { margin-left: auto; flex-shrink: 0; }
.v-cm-text { font-size: 15px; line-height: 1.55; color: #1F2937; margin-top: 3px; word-break: break-word; white-space: pre-wrap; }
.v-cm-acts { display: flex; align-items: center; gap: 14px; margin-top: 6px; position: relative; }
.v-cm-acts button { font-family: inherit; font-size: 13px; font-weight: 700; color: #9CA3AF; background: none; border: 0; padding: 2px 0; cursor: pointer; }
.v-cm-acts button:hover { color: #4B5563; }
.v-cm-acts .v-like.on { color: #2F6FD6; } .v-cm-acts .v-dislike.on { color: #D6336C; }
.v-cm-acts .v-more { margin-left: auto; font-size: 16px; line-height: 1; padding: 0 4px; }
.v-menu { position: absolute; right: 0; top: 24px; z-index: 5; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.08); padding: 4px; }
.v-cm-acts .v-menu button { display: block; color: #C92A2A; padding: 8px 14px; white-space: nowrap; }
.v-replies-toggle { font-family: inherit; font-size: 13px; font-weight: 800; color: #2F6FD6; background: none; border: 0; padding: 2px 0; margin-top: 6px; cursor: pointer; }
.v-replies { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 2px solid #E5E7EB; }
.v-replies .v-cm { padding: 6px 0; border-top: 0; }
.v-reply-write { display: flex; gap: 8px; margin-top: 8px; }
.v-reply-write input { flex: 1; min-width: 0; font-family: inherit; font-size: 14px; border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 8px 10px; }
.v-reply-write button { font-family: inherit; font-size: 13px; font-weight: 900; color: #fff; background: #111827; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.v-cm-moreall { display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 14px; font-weight: 800; color: #374151; background: #F3F4F6; border: 0; border-radius: 12px; padding: 11px; cursor: pointer; }

/* ---- 광고 자리(심리테스트와 같은 /api/ads-config 인라인 슬롯). 설정이 꺼져 있으면 빈 칸으로 남아 높이 0 */
.v-ad { max-width: none; margin: 48px 0 0; }   /* 결과 카드 버튼과 48px 이상(2026-10-28) */
#vAdBottom { margin: 48px 16px 48px; }   /* 공유 버튼과 48px 이상(2026-10-28 광고 크기·정책 점검 - 실측 37px였음) */
#vAdResult:not(:empty) { margin-bottom: 48px; }   /* 아래 댓글 정렬 버튼(공감순)과도 48px 이상(실측 33px였음, 2026-10-28) */
.v-ad:empty, #vAdBottom:empty { margin-top: 0; margin-bottom: 0; }   /* 광고 설정이 꺼져 빈 칸이면 여백도 없음 */
.v-cm-ad { list-style: none; padding: 0; }
.v-cm-ad .v-ad { margin: 0; }
.v-cm-ad .v-ad:not(:empty) { margin: 48px 0; }   /* 댓글 좋아요·답글 버튼과 48px 이상(2026-10-28) */
.v-ad.preview { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed #9CA3AF; border-radius: 14px;
    background: #F9FAFB; font-size: 14px; font-weight: 800; color: #6B7280; }
#vAdResult.preview { min-height: 250px; }

.v-gocomment { display: block; width: 100%; margin-top: 14px; font-family: inherit; font-size: 15px; font-weight: 900; color: #fff; background: #111827; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; }

/* PC도 휴대폰과 같은 한 줄 구조(10/20 대표: 그림 위에 글자를 얹는 배너 구조 폐기). 가운데 760px 한 줄로 위에서 아래로. */
@media (min-width: 768px) {
    .stage.v2 { max-width: 760px; }
    .v-head { padding: 22px 16px 22px; }
    .v-question { font-size: 28px; }
    .v-cardrow { gap: 20px; }
    .v-card-head { font-size: 18px; padding: 10px 6px; }
    .v-card-title { font-size: 20px; padding-top: 14px; }
    .v-card-text { font-size: 16px; }
    .v-vs { top: 214px; font-size: 18px; padding: 8px 12px; }
}
