/* AI킹 공통 */
.ai-king-page { max-width: 640px; margin: 0 auto; padding: 20px 16px 80px; }
.ai-king-header { text-align: center; margin-bottom: 28px; }
.ai-king-header__title { font-size: 26px; font-weight: 900; color: var(--color-text-primary); }
.ai-king-header__sub { font-size: 14px; color: var(--color-text-secondary); margin-top: 6px; }
.ai-king-usage { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.ai-king-usage__badge { font-size: 12px; padding: 3px 10px; background: var(--color-surface-2); border-radius: var(--radius-pill); color: var(--color-text-muted); }
.ai-king-usage__badge--warn { background: var(--color-warning-bg); color: var(--color-warning); }

/* 랜딩 카드 */
.ai-king-cards { display: flex; flex-direction: column; gap: 14px; }
.ai-king-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; cursor: pointer; transition: box-shadow .15s, transform .15s; text-decoration: none; display: block; }
.ai-king-card:hover, .ai-king-card:focus { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); border-color: var(--color-primary); }
.ai-king-card__emoji { font-size: 36px; margin-bottom: 10px; }
.ai-king-card__name { font-size: 20px; font-weight: 900; color: var(--color-text-primary); margin-bottom: 6px; }
.ai-king-card__desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.ai-king-card__limit { font-size: 11px; color: var(--color-text-muted); margin-top: 10px; }

/* 폼 */
.ai-king-form { background: var(--color-surface); border-radius: var(--radius-lg); border: 1.5px solid var(--color-border); padding: 20px; }
.ai-king-form__label { font-size: 14px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 8px; display: block; }
.ai-king-form__textarea { width: 100%; min-height: 100px; padding: 12px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); font-size: 14px; resize: vertical; background: var(--color-bg); color: var(--color-text-primary); font-family: inherit; box-sizing: border-box; }
.ai-king-form__textarea:focus { border-color: var(--color-primary); outline: none; }
.ai-king-form__charcount { font-size: 11px; color: var(--color-text-muted); text-align: right; margin-top: 4px; }

/* 이미지 업로드 */
.ai-king-img-upload { border: 2px dashed var(--color-border); border-radius: var(--radius-md); padding: 14px; text-align: center; cursor: pointer; transition: border-color .15s; margin-top: 12px; }
.ai-king-img-upload:hover { border-color: var(--color-primary); }
.ai-king-img-upload__preview { width: 100%; max-height: 200px; object-fit: contain; border-radius: var(--radius-md); margin-top: 8px; display: none; }
.ai-king-img-upload__label { font-size: 13px; color: var(--color-text-muted); }
.ai-king-img-upload__remove { font-size: 12px; color: var(--color-danger); cursor: pointer; margin-top: 4px; display: none; }

/* 스타일 선택 (번역사) */
.ai-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.ai-style-btn { padding: 10px 8px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; font-size: 13px; font-weight: 600; text-align: center; transition: all .15s; color: var(--color-text-primary); }
.ai-style-btn:hover, .ai-style-btn.active { border-color: var(--color-primary); background: var(--color-primary-bg); color: var(--color-primary); }

/* 궁합 두 칸 */
.ai-match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-match-vs { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: var(--color-primary); }

/* 로딩 */
.ai-king-loading { text-align: center; padding: 40px 20px; }
.ai-king-loading__text { font-size: 15px; color: var(--color-text-secondary); margin-top: 16px; font-weight: 600; }
.ai-king-loading__sub { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }

/* 결과 카드 (detail 페이지) */
.ai-judge-result { margin: 0; }
.ai-judge-situation { background: var(--color-surface-2); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; color: var(--color-text-primary); border-left: 3px solid var(--color-primary); }
.ai-verdict-list { display: flex; flex-direction: column; gap: 12px; }
.ai-verdict-item { background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 14px 16px; animation: ai-verdict-in .35s ease both; }
.ai-verdict-item:nth-child(2) { animation-delay: .08s; }
.ai-verdict-item:nth-child(3) { animation-delay: .16s; }
.ai-verdict-judge { font-size: 15px; font-weight: 800; color: var(--color-text-primary); margin-bottom: 8px; overflow-wrap: anywhere; }
.ai-verdict-text { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; overflow-wrap: anywhere; }
@keyframes ai-verdict-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 판사별 색상 코딩 (좌측 강조선 + 살짝 톤) */
.ai-verdict-item--judge { border-left-width: 4px; }
.ai-verdict-item--judge[data-judge="lawyer"]      { border-left-color: #5c6bc0; }
.ai-verdict-item--judge[data-judge="emotional"]   { border-left-color: #ec407a; }
.ai-verdict-item--judge[data-judge="boomer"]      { border-left-color: #8d6e63; }
.ai-verdict-item--judge[data-judge="scientist"]   { border-left-color: #26a69a; }
.ai-verdict-item--judge[data-judge="philosopher"] { border-left-color: #7e57c2; }
.ai-verdict-item--judge[data-judge="alien"]       { border-left-color: #66bb6a; }
.ai-verdict-item--judge[data-judge="crazy"]       { border-left-color: #ffa726; }

/* 번역 결과 */
.ai-translate-original { background: var(--color-surface-2); border-radius: var(--radius-md); padding: 12px 16px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; }
.ai-translate-original__label { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--color-text-muted); }
.ai-translate-output { position: relative; background: var(--color-primary-bg); border: 1.5px solid var(--color-primary); border-radius: var(--radius-md); padding: 16px; }
.ai-translate-output__label { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--color-primary); padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.ai-translate-output__text { font-size: 16px; color: var(--color-text-primary); line-height: 1.7; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }

/* 궁합 결과 */
.ai-match-result { text-align: center; }
.ai-match-items { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; font-size: 16px; font-weight: 800; }
.ai-match-items__vs { font-size: 22px; color: var(--color-primary); }
.ai-match-score-ring { width: 116px; height: 116px; border-radius: 50%; background: conic-gradient(from -90deg, #FF4B2B, #FF8A00 calc(var(--score) * 1%), var(--color-border) 0); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; position: relative; animation: ai-ring-pop .5s cubic-bezier(.22,1.2,.36,1) both; }
.ai-match-score-ring::after { content: ''; position: absolute; width: 88px; height: 88px; background: var(--color-bg); border-radius: 50%; }
.ai-match-score-num { position: relative; z-index: 1; font-size: 26px; font-weight: 900; color: var(--color-text-primary); }
@keyframes ai-ring-pop { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
.ai-match-grade { display: inline-block; font-size: 20px; font-weight: 900; color: #fff; background: var(--gradient-brand, linear-gradient(135deg,#FF4B2B,#FF8A00)); padding: 6px 18px; border-radius: var(--radius-pill); margin-bottom: 16px; animation: ai-grade-pop .45s .15s cubic-bezier(.22,1.2,.36,1) both; }
@keyframes ai-grade-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.ai-match-reason { background: var(--color-surface-2); border-radius: var(--radius-md); padding: 14px; font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 10px; text-align: left; }
.ai-match-chemistry { background: var(--color-golra-bg); border-radius: var(--radius-md); padding: 12px 14px; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 10px; text-align: left; }
.ai-match-advice { font-size: 13px; color: var(--color-warning); font-weight: 700; padding: 10px; background: var(--color-warning-bg); border-radius: var(--radius-md); }

/* 작명 결과 — 1위 이름은 골드 우승 카드 */
.ai-naming-result .ai-verdict-item:first-child { border: 2px solid #f6c343; background: linear-gradient(135deg, rgba(246,195,67,.14), rgba(255,138,0,.06)); }
.ai-naming-result .ai-verdict-item:first-child .ai-verdict-judge { font-size: 18px; color: #c8860d; }

/* 홈 히어로 v3 */
.home-hero-v3 { background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-surface) 100%); border-radius: 16px; padding: 24px 20px 20px; margin-bottom: 20px; border: 1.5px solid var(--color-border); }
.home-hero-v3__top { margin-bottom: 20px; }
.home-hero-v3__badge { display: inline-block; font-size: 12px; font-weight: 700; background: var(--color-primary); color: #fff; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 12px; letter-spacing: .3px; }
.home-hero-v3__title { font-size: 22px; font-weight: 900; color: var(--color-text-primary); line-height: 1.4; margin-bottom: 6px; }
.home-hero-v3__sub { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.home-hero-v3__streak { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--color-warning); background: var(--color-warning-bg); padding: 5px 12px; border-radius: var(--radius-pill); }

/* 홈 AI킹 허브 진입 버튼 */
.home-aiking-hub-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; background: linear-gradient(135deg, var(--color-primary-bg), var(--color-surface)); border: 2px solid var(--color-primary); border-radius: 12px; cursor: pointer; transition: box-shadow .15s, transform .15s; margin-bottom: 10px; }
.home-aiking-hub-btn:hover, .home-aiking-hub-btn:focus { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.home-aiking-hub-btn__icons { font-size: 18px; letter-spacing: 2px; }
.home-aiking-hub-btn__label { font-size: 14px; font-weight: 800; color: var(--color-primary); }

/* 홈 AI킹 그리드 */
.home-aiking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-aiking-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 12px; padding: 14px 12px; cursor: pointer; text-align: center; transition: box-shadow .15s, transform .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.home-aiking-card:hover, .home-aiking-card:focus { box-shadow: 0 6px 16px rgba(0,0,0,.1); transform: translateY(-2px); border-color: var(--color-primary); }
.home-aiking-card__emoji { font-size: 28px; line-height: 1; }
.home-aiking-card__name { font-size: 13px; font-weight: 800; color: var(--color-text-primary); }
.home-aiking-card__desc { font-size: 11px; color: var(--color-text-muted); }

/* 홈 커뮤니티 버튼 */
.home-community-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.home-community-btn { background: var(--color-surface-2); border: 1.5px solid var(--color-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 700; color: var(--color-text-primary); display: flex; align-items: center; gap: 6px; transition: border-color .15s, background .15s; }
.home-community-btn:hover, .home-community-btn:focus { border-color: var(--color-primary); background: var(--color-primary-bg); }
.home-community-btn__sub { font-size: 11px; font-weight: 400; color: var(--color-text-muted); margin-left: auto; }

/* 예시 힌트 칩 */
.ai-example-chip { font-size: 11px; padding: 5px 10px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-pill); cursor: pointer; color: var(--color-text-secondary); transition: all .15s; white-space: nowrap; }
.ai-example-chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-bg); }

/* 판사 선택 칩 */
.ai-judge-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.ai-judge-chip { padding: 9px 8px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; font-size: 13px; font-weight: 600; text-align: center; transition: all .15s; color: var(--color-text-primary); }
.ai-judge-chip:hover { border-color: var(--color-primary); background: var(--color-primary-bg); color: var(--color-primary); }
.ai-judge-chip.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }

/* 결과 하단 액션 */
.ai-result-actions { display: flex; gap: 10px; margin-top: 20px; }
.ai-result-actions .btn { flex: 1; }

/* 가이드 안내 박스 */
.guide-notice { background: var(--color-primary-bg); border: 1.5px solid var(--color-primary); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--color-text-primary); margin-bottom: 12px; }
.guide-page { max-width: 640px; margin: 0 auto; padding: 16px 16px 80px; }
.guide-hero { text-align: center; padding: 28px 16px; }
.guide-hero__icon { font-size: 48px; margin-bottom: 12px; }
.guide-hero__title { font-size: 24px; font-weight: 900; color: var(--color-text-primary); margin-bottom: 8px; }
.guide-hero__sub { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.guide-toc { padding: 16px; margin-bottom: 20px; }
.guide-toc__title { font-size: 13px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 10px; }
.guide-toc__list { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc__item { font-size: 13px; color: var(--color-primary); text-decoration: none; padding: 4px 10px; background: var(--color-primary-bg); border-radius: var(--radius-pill); font-weight: 600; }
.guide-section { margin-bottom: 28px; }
.guide-section__title { font-size: 18px; font-weight: 900; color: var(--color-text-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }
.guide-section__body { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }
.guide-section__body p { margin-bottom: 10px; }

/* AI킹 포인트 행 */
.ai-king-points-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-king-points-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; background: var(--color-surface-2); border-radius: var(--radius-pill); color: var(--color-text-primary); border: 1px solid var(--color-border); }
.ai-king-points-badge--extra { background: #fff3cd; color: #856404; border-color: #ffc107; }
[data-theme="dark"] .ai-king-points-badge--extra { background: #3d2e00; color: #ffc107; border-color: #856404; }
.ai-king-points-shop-link { font-size: 12px; color: var(--color-primary); font-weight: 700; text-decoration: none; margin-left: auto; }

/* 포인트 상점 페이지 */
.points-shop-page { max-width: 640px; margin: 0 auto; padding: 16px 16px 80px; }
.points-balance-card { background: linear-gradient(135deg, #FF6B4A, #e84393); border-radius: 16px; padding: 24px; color: #fff; text-align: center; }
.points-balance-card__label { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.points-balance-card__amount { font-size: 48px; font-weight: 900; line-height: 1; }
.points-balance-card__amount span { font-size: 24px; margin-left: 4px; opacity: 0.8; }
.points-balance-card__extra { font-size: 13px; opacity: 0.85; margin-top: 8px; }

.points-shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.points-shop-item { border: 2px solid var(--color-border); border-radius: 12px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; transition: border-color .15s; }
.points-shop-item:not(.points-shop-item--disabled):hover { border-color: var(--color-primary); }
.points-shop-item--disabled { opacity: 0.5; }
.points-shop-item__qty { font-size: 16px; font-weight: 800; color: var(--color-text-primary); }
.points-shop-item__bonus { font-size: 11px; background: #fff3cd; color: #856404; padding: 2px 6px; border-radius: 6px; font-weight: 700; vertical-align: middle; }
[data-theme="dark"] .points-shop-item__bonus { background: #3d2e00; color: #ffc107; }
.points-shop-item__cost { font-size: 20px; font-weight: 900; color: var(--color-primary); }

.points-earn-list { display: flex; flex-direction: column; gap: 10px; }
.points-earn-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.points-earn-item__icon { font-size: 18px; flex-shrink: 0; }
.points-earn-item__label { flex: 1; color: var(--color-text-secondary); }
.points-earn-item__pts { font-size: 13px; font-weight: 800; color: var(--color-primary); flex-shrink: 0; }

/* 관리자 모델 라디오 */
.admin-model-radio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid var(--color-border); border-radius: 10px; cursor: pointer; transition: all .15s; flex: 1; min-width: 140px; }
.admin-model-radio.active { border-color: var(--color-primary); background: var(--color-primary-bg); }
.admin-key-row { padding: 10px 0; border-top: 1px solid var(--color-border-light); }

/* 결과 공유 버튼 행 */
.ai-result-share-row { display: flex; gap: 8px; margin-top: 10px; }
.ai-result-share-row .btn { flex: 1; font-size: 13px; }

/* share-sheet 결과 텍스트 버튼 */
.share-btn--text { background: var(--color-surface-2); border: 1px solid var(--color-border); }

/* ── 명예의 전당 ── */
.hall-legend { background: linear-gradient(135deg, #FF6B4A 0%, #e84393 100%); border-radius: 14px; padding: 16px; margin-bottom: 16px; color: #fff; }
.hall-legend__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hall-legend__crown { font-size: 28px; line-height: 1; }
.hall-legend__title { font-size: 17px; font-weight: 900; }
.hall-legend__sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.hall-legend__first { background: rgba(0,0,0,0.18); border-radius: 8px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 8px; transition: background .15s; }
.hall-legend__first:hover { background: rgba(0,0,0,0.28); }
.hall-legend__first-rank { font-size: 22px; line-height: 1; flex-shrink: 0; }
.hall-legend__first-body { flex: 1; min-width: 0; }
.hall-legend__first-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.hall-legend__first-meta { font-size: 12px; opacity: 0.75; margin-top: 6px; }

.hall-legend__rest { display: flex; flex-direction: column; gap: 6px; }
.hall-legend__rest-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: background .15s; }
.hall-legend__rest-item:hover { background: rgba(255,255,255,0.22); }
.hall-legend__rest-rank { font-size: 18px; flex-shrink: 0; }
.hall-legend__rest-body { flex: 1; min-width: 0; }
.hall-legend__rest-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-legend__rest-score { font-size: 12px; opacity: 0.8; flex-shrink: 0; }

/* hall 섹션 스니펫 + 전체보기 */
.hall-ai-snippet { display: inline-block; font-size: 11px; color: var(--color-primary); background: var(--color-primary-bg); border-radius: 8px; padding: 2px 8px; margin: 4px 0; }
.hall-ai-snippet--score { color: #E84393; background: #fce4f1; }
[data-theme="dark"] .hall-ai-snippet--score { background: #3d1c2e; }
.hall-section__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; position: relative; }
.hall-section__more { margin-left: auto; font-size: 12px; color: var(--color-primary); text-decoration: none; font-weight: 600; padding-top: 2px; white-space: nowrap; }
.hall-item__meta { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; }

/* ── 궁합 이미지 드래그 박스 ── */
.match-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--color-surface-2);
  margin-top: 8px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color .15s;
}
.match-img-box:hover { border-color: var(--color-primary); }
.match-img-box--has-image { border-style: solid; border-color: var(--color-border); cursor: grab; }
.match-img-box--has-image:active { cursor: grabbing; }

.match-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-text-muted);
  pointer-events: none;
}
.match-img-placeholder__icon { font-size: 26px; }
.match-img-placeholder__label { font-size: 11px; }

.match-img-draggable {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.match-img-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  font-size: 11px;
  cursor: pointer;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.match-img-remove:hover { background: rgba(220,30,30,.8); }

.match-img-hint {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 5px;
  display: none;
}

/* ── 소소 허브 (4소 랜딩) ── */
.soso-hub { max-width: 640px; margin: 0 auto; padding: 16px 16px 80px; }
.soso-hub__header { text-align: center; padding: 20px 0 24px; }
.soso-hub__title { font-size: 28px; font-weight: 900; color: var(--color-text-primary); margin-bottom: 6px; }
.soso-hub__sub { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.soso-hub__points-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 5인 캐릭터 소개 */
.soso-chars { margin-bottom: 24px; }
.soso-chars__title { font-size: 13px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 10px; text-align: center; letter-spacing: .3px; }
.soso-chars__grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.soso-chars__grid::-webkit-scrollbar { display: none; }
.soso-char-chip { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 12px; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 12px; cursor: default; min-width: 70px; transition: border-color .15s, transform .15s; }
.soso-char-chip:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.soso-char-chip__emoji { font-size: 22px; line-height: 1; }
.soso-char-chip__name { font-size: 11px; font-weight: 700; color: var(--color-text-primary); white-space: nowrap; }
.soso-char-chip__desc { font-size: 10px; color: var(--color-text-muted); text-align: center; line-height: 1.3; }

/* 4소 그리드 */
.soso-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.soso-office { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 14px; padding: 16px; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; display: flex; flex-direction: column; gap: 6px; }
.soso-office:hover, .soso-office:focus { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-2px); border-color: var(--office-color, var(--color-primary)); }
.soso-office__head { display: flex; align-items: center; justify-content: space-between; }
.soso-office__emoji { font-size: 28px; line-height: 1; }
.soso-office__badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--color-surface-2); color: var(--color-text-muted); }
.soso-office__badge--warn { background: var(--color-warning-bg); color: var(--color-warning); }
.soso-office__name { font-size: 17px; font-weight: 900; color: var(--color-text-primary); }
.soso-office__desc { font-size: 12px; color: var(--color-text-secondary); line-height: 1.4; }
.soso-office__cta { font-size: 12px; font-weight: 700; color: var(--office-color, var(--color-primary)); margin-top: 4px; }

/* 창작소 탭 */
.ai-create-tabs { display: flex; gap: 0; background: var(--color-surface-2); border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.ai-create-tab { flex: 1; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--color-text-muted); background: transparent; border: none; cursor: pointer; transition: all .15s; }
.ai-create-tab.active { background: var(--color-surface); color: var(--color-text-primary); box-shadow: 0 2px 6px rgba(0,0,0,.1); }

/* 캐릭터 선택 그리드 (판결소/창작소/상담소) */
/* 캐릭터 선택 헤더 (랜덤 버튼 포함) */
.ai-char-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-char-header .ai-king-form__label { margin-bottom: 0; }
.ai-char-random-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-primary); background: var(--color-primary-bg); color: var(--color-primary); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.ai-char-random-btn:hover { background: var(--color-primary); color: #fff; }
.ai-char-random-btn:active { transform: scale(.95); }

.ai-char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ai-char-btn { padding: 10px 4px 8px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; text-align: center; transition: all .15s; color: var(--color-text-primary); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ai-char-btn:hover { border-color: var(--color-primary); background: var(--color-primary-bg); }
.ai-char-btn.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.ai-char-btn__emoji { font-size: 20px; line-height: 1; }
.ai-char-btn__name { font-size: 10px; font-weight: 700; line-height: 1.2; }
.ai-char-btn__sub { font-size: 9px; opacity: .75; line-height: 1.2; }
.ai-char-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 6px; min-height: 16px; }

/* 상담소 결과 */
.ai-verdict-item--consult { border-left: 4px solid #F39C12; }
.ai-verdict-item--consult[data-char="kimdonmu"]  { border-left-color: #E74C3C; }
.ai-verdict-item--consult[data-char="tanaka"]    { border-left-color: #E91E8C; }
.ai-verdict-item--consult[data-char="marcel"]    { border-left-color: #3498DB; }
.ai-verdict-item--consult[data-char="ipanseo"]   { border-left-color: #8E44AD; }
.ai-verdict-item--consult[data-char="dmitri"]    { border-left-color: #E74C3C; }

/* 캐릭터 색상 — 판결소/창작소 공통 */
.ai-verdict-item--judge[data-char="kimdonmu"]  { border-left-color: #E74C3C; }
.ai-verdict-item--judge[data-char="tanaka"]    { border-left-color: #E91E8C; }
.ai-verdict-item--judge[data-char="marcel"]    { border-left-color: #3498DB; }
.ai-verdict-item--judge[data-char="ipanseo"]   { border-left-color: #8E44AD; }
.ai-verdict-item--judge[data-char="dmitri"]    { border-left-color: #FF5722; }
.ai-verdict-item--judge[data-char="jungding"]  { border-left-color: #00B894; }
.ai-verdict-item--judge[data-char="saibi"]     { border-left-color: #A29BFE; }
.ai-verdict-item--judge[data-char="prophet"]   { border-left-color: #6C5CE7; }
.ai-verdict-item--judge[data-char="joojeob"]   { border-left-color: #FD79A8; }
.ai-verdict-item--judge[data-char="chamgyeon"] { border-left-color: #FDCB6E; }
.ai-verdict-item--judge[data-char="kkondae"]   { border-left-color: #636E72; }

/* ── 온보딩 메인페이지 ── */
.onboard { max-width: 480px; margin: 0 auto; padding: 0 16px 56px; }

.onboard-hero { text-align: center; padding: 28px 0 20px; }
.onboard-hero__eyebrow { display: inline-block; padding: 4px 12px; background: var(--color-primary-bg); color: var(--color-primary); border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.onboard-hero__title { font-size: 34px; font-weight: 900; color: var(--color-text-primary); line-height: 1; margin-bottom: 10px; letter-spacing: -1px; }
.onboard-hero__desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 14px; }
.onboard-hero__badges { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.onboard-section { margin-top: 28px; }
.onboard-section__label { font-size: 11px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.3px; }

.onboard-chars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.onboard-char-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 13px 6px 11px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .15s, transform .15s; }
.onboard-char-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.onboard-char-card__emoji { font-size: 26px; line-height: 1; }
.onboard-char-card__name { font-size: 11px; font-weight: 800; color: var(--color-text-primary); }
.onboard-char-card__quote { font-size: 9px; color: var(--color-text-muted); line-height: 1.45; word-break: keep-all; }

.onboard-how { display: flex; align-items: center; gap: 4px; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 14px 10px; margin-top: 28px; }
.onboard-how__step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.onboard-how__num { width: 22px; height: 22px; background: var(--color-primary); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onboard-how__label { font-size: 9.5px; color: var(--color-text-secondary); text-align: center; line-height: 1.35; font-weight: 600; }
.onboard-how__arrow { color: var(--color-text-muted); font-size: 12px; flex-shrink: 0; }

.onboard-footer { text-align: center; font-size: 11px; color: var(--color-text-muted); margin-top: 20px; line-height: 1.7; }

/* ── AI 티격태격 (ai_debate) ── */
.ai-debate-topic { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--color-golra-bg, var(--color-surface-2)); border-radius: 12px; margin-bottom: 14px; }
.ai-debate-topic__label { font-size: 11px; font-weight: 800; color: var(--color-primary); letter-spacing: .3px; }
.ai-debate-topic__text { font-size: 15px; font-weight: 800; color: var(--color-text-primary); line-height: 1.5; }

.ai-debate-thread { display: flex; flex-direction: column; gap: 10px; }
.ai-debate-turn { display: flex; flex-direction: column; gap: 3px; }
.ai-debate-turn__name { font-size: 12px; font-weight: 800; color: var(--color-text-secondary); padding-left: 2px; }
.ai-debate-turn__bubble { font-size: 14px; line-height: 1.6; color: var(--color-text-primary); background: var(--color-surface-2); border: 1px solid var(--color-border-light); border-radius: 4px 14px 14px 14px; padding: 10px 14px; align-self: flex-start; max-width: 92%; }
/* 캐릭터별 살짝 다른 말풍선 색으로 난장판 느낌 */
.ai-debate-turn[data-char="jungding"]  .ai-debate-turn__bubble { background: #eef6ff; }
.ai-debate-turn[data-char="saibi"]     .ai-debate-turn__bubble { background: #f3eefe; }
.ai-debate-turn[data-char="prophet"]   .ai-debate-turn__bubble { background: #eefaf3; }
.ai-debate-turn[data-char="joojeob"]   .ai-debate-turn__bubble { background: #fff2f5; }
.ai-debate-turn[data-char="chamgyeon"] .ai-debate-turn__bubble { background: #fff7e8; }
.ai-debate-turn[data-char="kkondae"]   .ai-debate-turn__bubble { background: #f0f1f3; }
[data-theme="dark"] .ai-debate-turn__bubble { background: var(--color-surface-2); }
[data-theme="dark"] .ai-debate-turn[data-char] .ai-debate-turn__bubble { background: rgba(255,255,255,.04); }
.ai-debate-foot { margin-top: 16px; text-align: center; font-size: 13px; font-weight: 700; color: var(--color-text-secondary); }

/* ── 홈: 오늘의 티격태격 카드 ── */
.home-debate-card { margin-top: 16px; padding: 16px 18px; border-radius: 18px; cursor: pointer; background: linear-gradient(135deg, #fff4ef 0%, #ffe9f0 100%); border: 1.5px solid var(--color-primary, #ff6b4a); transition: transform .15s, box-shadow .15s; }
.home-debate-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,107,74,.18); }
[data-theme="dark"] .home-debate-card { background: linear-gradient(135deg, rgba(255,107,74,.12) 0%, rgba(255,107,74,.05) 100%); }
.home-debate-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.home-debate-card__label { font-size: 13px; font-weight: 900; color: var(--color-primary, #ff6b4a); }
.home-debate-card__live { font-size: 10px; font-weight: 800; color: #fff; background: var(--color-primary, #ff6b4a); padding: 3px 8px; border-radius: 999px; }
.home-debate-card__topic { font-size: 16px; font-weight: 800; color: var(--color-text-primary); line-height: 1.45; margin-bottom: 10px; word-break: keep-all; }
.home-debate-card__preview { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.home-debate-card__line { font-size: 12.5px; color: var(--color-text-secondary); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-debate-card__line b { color: var(--color-text-primary); font-weight: 800; }
.home-debate-card__more { font-size: 13px; font-weight: 800; color: var(--color-primary, #ff6b4a); }

/* ════════════════════════════════════════════
   피드 카테고리 탭 (soso-room-tabs)
   ════════════════════════════════════════════ */
.soso-room-tabs-wrap {
  margin-bottom: 4px;
}

.soso-room-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.soso-room-tabs::-webkit-scrollbar { display: none; }

.soso-room-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .1s;
  line-height: 1;
}
.soso-room-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft, #fff1ee);
  transform: translateY(-1px);
}
.soso-room-tab.active {
  background: var(--color-primary, #ff6b4a);
  border-color: var(--color-primary, #ff6b4a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 74, .30);
  transform: translateY(-1px);
}
.soso-room-tab__icon { font-size: 15px; line-height: 1; }
.soso-room-tab__label { font-size: 13px; font-weight: 800; }

/* 활성 방 설명 바 */
.soso-room-desc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  margin-bottom: 6px;
  background: var(--color-primary-soft, #fff1ee);
  border: 1px solid var(--color-primary-light, #ffd5ca);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  animation: room-desc-in .18s ease;
}
@keyframes room-desc-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.soso-room-desc__icon { font-size: 15px; flex-shrink: 0; }
.soso-room-desc__text { flex: 1; font-weight: 600; line-height: 1.4; }
.soso-room-desc__cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.soso-room-desc__cta:hover { text-decoration: underline; }

/* 다크 모드 보정 */
[data-theme="dark"] .soso-room-tab {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="dark"] .soso-room-tab:hover {
  background: rgba(255,107,74,.12);
}
[data-theme="dark"] .soso-room-tab.active {
  box-shadow: 0 4px 14px rgba(255, 107, 74, .20);
}
[data-theme="dark"] .soso-room-desc {
  background: rgba(255,107,74,.08);
  border-color: rgba(255,107,74,.25);
}

/* ════════════════════════════════════════════
   티격태격 투표 UI (ai_debate vote)
   ════════════════════════════════════════════ */
.ai-debate-vote {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-surface-2);
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
}
.ai-debate-vote__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 12px;
}
.ai-debate-vote__btns {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.ai-debate-vote-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all .15s;
  color: var(--color-text-primary);
  text-align: center;
}
.ai-debate-vote-btn:hover:not(:disabled) {
  border-color: #e74c3c;
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231,76,60,.18);
}
.ai-debate-vote-btn--b:hover:not(:disabled) {
  border-color: #3498db;
  background: #f0f7ff;
  box-shadow: 0 4px 12px rgba(52,152,219,.18);
}
.ai-debate-vote-btn.active {
  border-color: #e74c3c;
  background: #ffeaea;
  box-shadow: 0 4px 14px rgba(231,76,60,.22);
  transform: translateY(-1px);
}
.ai-debate-vote-btn--b.active {
  border-color: #3498db;
  background: #e8f4fd;
  box-shadow: 0 4px 14px rgba(52,152,219,.22);
}
.ai-debate-vote-btn:disabled {
  cursor: not-allowed;
  opacity: .85;
}
.ai-debate-vote-btn__side { font-size: 13px; font-weight: 900; }
.ai-debate-vote-btn__text { font-size: 12px; color: var(--color-text-secondary); line-height: 1.4; word-break: keep-all; }
.ai-debate-vote-btn__count { font-size: 11px; font-weight: 700; color: var(--color-text-muted); margin-top: 2px; }
.ai-debate-vote-btn.active .ai-debate-vote-btn__count { color: inherit; }
.ai-debate-vote__vs {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-text-muted);
  flex-shrink: 0;
  padding: 0 2px;
}
.ai-debate-vote__hint {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 10px;
}
[data-theme="dark"] .ai-debate-vote-btn:hover:not(:disabled) { background: rgba(231,76,60,.12); }
[data-theme="dark"] .ai-debate-vote-btn--b:hover:not(:disabled) { background: rgba(52,152,219,.12); }
[data-theme="dark"] .ai-debate-vote-btn.active { background: rgba(231,76,60,.18); }
[data-theme="dark"] .ai-debate-vote-btn--b.active { background: rgba(52,152,219,.18); }

/* ════════════════════════════════════════════
   티격태격 댓글 영역 (ai_debate comments)
   ════════════════════════════════════════════ */
.debate-vote-prompt {
  text-align: center;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-radius: 10px;
  border: 1.5px dashed var(--color-border);
}
.debate-comment-side-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  background: #ffeaea;
  color: #c0392b;
  border: 1.5px solid #f1948a;
}
.debate-comment-side-badge--b {
  background: #e8f4fd;
  color: #1a6fa0;
  border-color: #85c1e9;
}
.debate-comment-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}
.debate-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.debate-col--a { border-right: 1.5px solid var(--color-border); }
.debate-col__title {
  font-size: 12px;
  font-weight: 900;
  padding: 9px 12px;
  text-align: center;
  letter-spacing: .2px;
  border-bottom: 1.5px solid var(--color-border);
}
.debate-col--a .debate-col__title {
  color: #c0392b;
  background: #fdf0ef;
}
.debate-col--b .debate-col__title {
  color: #1565c0;
  background: #eff6ff;
}
.debate-col__empty {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px 8px;
}
.debate-col--a .debate-comment { border-left: 3px solid #e74c3c; }
.debate-col--b .debate-comment { border-left: 3px solid #2980b9; }
.debate-comment {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light, var(--color-border));
  padding: 10px 12px;
  font-size: 13px;
  transition: background .12s;
  word-break: break-word;
}
.debate-col__title + .debate-comment { border-top: none; }
.debate-col--a .debate-comment { background: #fff9f9; }
.debate-col--b .debate-comment { background: #f6faff; }
.debate-comment--ai { background: #fffbf0 !important; border-left-color: #f39c12 !important; }
.debate-comment__text {
  color: var(--color-text-primary);
  line-height: 1.55;
  margin-bottom: 6px;
}
.debate-comment__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.debate-comment__name {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-secondary);
}
.debate-comment__meta > span:not(.debate-comment__name) {
  font-size: 11px;
  color: var(--color-text-muted);
}
@media (max-width: 480px) {
  .debate-comment-cols { grid-template-columns: 1fr; }
  .debate-col--a { border-right: none; border-bottom: 1.5px solid var(--color-border); }
}
[data-theme="dark"] .debate-col--a .debate-col__title { background: rgba(231,76,60,.12); }
[data-theme="dark"] .debate-col--b .debate-col__title { background: rgba(41,128,185,.12); }
[data-theme="dark"] .debate-col--a .debate-comment { background: rgba(231,76,60,.04); }
[data-theme="dark"] .debate-col--b .debate-comment { background: rgba(41,128,185,.04); }
[data-theme="dark"] .debate-comment--ai { background: rgba(243,156,18,.08) !important; }

/* AI 의심 버튼 */
.debate-decoy-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  font-size: 11px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all .12s;
  margin-left: auto;
}
.debate-decoy-btn:hover { border-color: #f39c12; color: #f39c12; background: #fffbf0; }
.debate-decoy-btn.active { border-color: #f39c12; background: #fff3cd; color: #d68910; }

/* 공개 후 배지 */
.debate-decoy-result {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
}
.debate-decoy-result--ai { background: #fdebd0; color: #ca6f1e; border: 1px solid #f0b27a; }
.debate-decoy-result--correct { background: #d5f5e3; color: #1e8449; border: 1px solid #82e0aa; }
.debate-decoy-result--wrong { background: #fadbd8; color: #c0392b; border: 1px solid #f1948a; }

/* AI 찾아라 힌트 배너 */
.comment-ai-hunt-hint {
  font-size: 12px;
  color: #d68910;
  background: #fffbf0;
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 7px 12px;
  margin: 8px 0 4px;
  text-align: center;
  line-height: 1.4;
}
[data-theme="dark"] .comment-ai-hunt-hint {
  background: rgba(243,156,18,.1);
  border-color: rgba(243,156,18,.3);
  color: #f0b429;
}

/* ── 핫포테이토 ── */
.hot-potato-page { max-width: 600px; margin: 0 auto; padding: 16px; }
.hot-potato-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.hot-potato-card:not(.hot-potato-card--exploded) { border-color: #f39c12; }
.hot-potato-card--exploded { border-color: var(--color-border); opacity: .7; }
.hot-potato-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hot-potato-card__title { font-size: 15px; font-weight: 900; }
.hot-potato-card__badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.hot-potato-card__badge--live { background: #fff3cd; color: #856404; }
.hot-potato-card__badge--exploded { background: var(--color-surface-2); color: var(--color-text-muted); }
.hot-potato-card__holder {
  font-size: 13px;
  background: var(--color-surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.hot-potato-card__holder--mine { background: #fff3cd; border: 1px solid #f39c12; }
.hot-potato-card__timer {
  font-size: 20px;
  font-weight: 900;
  color: #e74c3c;
  text-align: center;
  padding: 8px 0;
  letter-spacing: -.5px;
}
.hot-potato-card__meta { font-size: 11px; color: var(--color-text-muted); margin-bottom: 10px; }
.hot-potato-card__comment-area { display: flex; gap: 8px; }
.hot-potato-comment-input { flex: 1; }
[data-theme="dark"] .hot-potato-card__badge--live { background: rgba(243,156,18,.2); color: #f0b429; }
[data-theme="dark"] .hot-potato-card__holder--mine { background: rgba(243,156,18,.1); border-color: rgba(243,156,18,.4); }

/* ════════════════════════════════════════════
   수다방 (jabdam)
   ════════════════════════════════════════════ */
.jabdam-page { max-width: 680px; margin: 0 auto; padding: 16px 0 48px; }
.jabdam-header { margin-bottom: 16px; }
.jabdam-form { margin-bottom: 16px; }
.jabdam-textarea { width: 100%; resize: vertical; min-height: 72px; font-size: 14px; }
.jabdam-form__foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.jabdam-img-label { font-size: 22px; cursor: pointer; padding: 4px 6px; border-radius: 8px; transition: background .15s; }
.jabdam-img-label:hover { background: var(--color-surface-2); }
.jabdam-img-preview { display: flex; align-items: center; gap: 8px; }
.jabdam-preview-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border); }
.jabdam-remove-img { background: var(--color-danger); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.jabdam-login-hint { text-align: center; padding: 16px; margin-bottom: 16px; }

.jabdam-list { display: flex; flex-direction: column; gap: 12px; }
.jabdam-post { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 14px 16px; }
.jabdam-post__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.jabdam-post__author { font-size: 13px; font-weight: 800; color: var(--color-text-primary); }
.jabdam-post__time { font-size: 11px; color: var(--color-text-muted); flex: 1; }
.jabdam-delete-btn { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.jabdam-delete-btn:hover { background: var(--color-danger-bg, #fff0f0); color: var(--color-danger); }
.jabdam-post__text { font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; margin-bottom: 8px; }
.jabdam-link { color: var(--color-primary); text-decoration: underline; word-break: break-all; }
.jabdam-post__img-wrap { margin-bottom: 10px; }
.jabdam-post__img { max-width: 100%; border-radius: 12px; display: block; max-height: 480px; object-fit: contain; }
.jabdam-post__foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.jabdam-like-btn { background: none; border: 1px solid var(--color-border); border-radius: 20px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--color-text-secondary); transition: all .15s; display: flex; align-items: center; gap: 4px; }
.jabdam-like-btn:hover, .jabdam-like-btn--on { background: var(--color-primary-bg); border-color: var(--color-primary); color: var(--color-primary); }

/* 수다방 탭 메뉴 */
.jabdam-tabs { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: 16px; gap: 0; }
.jabdam-tab { flex: 1; padding: 10px 6px; font-size: 13px; font-weight: 700; background: none; border: none; cursor: pointer; color: var(--color-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s; }
.jabdam-tab:hover { color: var(--color-primary); }
.jabdam-tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* 게임 공통 */
.game-input-bar { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }

/* 끝말잇기 */
.game-wordchain__prompt { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.wc-next-char { color: var(--color-primary); font-weight: 900; font-size: 18px; }
.wc-input { font-size: 16px; font-weight: 700; }
.wc-chain { margin-top: 4px; }
.wc-chain-scroll { overflow-x: auto; padding-bottom: 8px; }
.wc-chain-list { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; padding: 12px; background: var(--color-surface-2); border-radius: 12px; min-height: 60px; }
.wc-word { display: inline-flex; flex-direction: column; align-items: center; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 10px; padding: 6px 12px; cursor: default; }
.wc-word--last { border-color: var(--color-primary); background: var(--color-primary-bg); }
.wc-word__text { font-size: 15px; font-weight: 800; color: var(--color-text-primary); }
.wc-word--last .wc-word__text { color: var(--color-primary); }
.wc-word__author { font-size: 10px; color: var(--color-text-muted); font-weight: 400; margin-top: 2px; }
.wc-arrow { color: var(--color-text-muted); font-size: 12px; flex-shrink: 0; }
.wc-count { font-size: 12px; color: var(--color-text-muted); text-align: right; margin-top: 6px; }
.wc-empty { text-align: center; padding: 40px 16px; color: var(--color-text-muted); font-size: 13px; line-height: 1.8; }

/* 초성게임 */
.cs-create-header { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.cs-create-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-create-row .form-input { flex: 1; min-width: 80px; font-size: 13px; }
.cs-list { display: flex; flex-direction: column; gap: 12px; }
.cs-card { background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 14px; padding: 14px 16px; }
.cs-card--solved { border-color: #00b894; background: #f0fff8; }
[data-theme="dark"] .cs-card--solved { background: rgba(0,184,148,.08); border-color: #00b894; }
.cs-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cs-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--color-surface-2); color: var(--color-text-secondary); }
.cs-badge--solved { background: #00b894; color: #fff; }
.cs-card__author { font-size: 12px; color: var(--color-text-muted); }
.cs-card__time { font-size: 11px; color: var(--color-text-muted); margin-left: auto; }
.cs-delete-btn { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.cs-delete-btn:hover { color: var(--color-danger); }
.cs-card__initials { font-size: 32px; font-weight: 900; letter-spacing: 10px; color: var(--color-text-primary); text-align: center; padding: 10px 0; }
.cs-card__hint { font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; }
.cs-card__guess { display: flex; gap: 8px; margin-top: 10px; }
.cs-guess-input { flex: 1; font-size: 14px; }
.cs-card__solved { font-size: 13px; color: #00856f; margin-top: 8px; padding: 8px 10px; background: rgba(0,184,148,.12); border-radius: 8px; }
.cs-card__tried { font-size: 12px; color: var(--color-text-muted); margin-top: 8px; font-style: italic; }
.cs-card__stats { font-size: 11px; color: var(--color-text-muted); margin-top: 8px; }

/* 링크 첨부 입력 */
.jabdam-link-input-wrap { display: flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: 10px; padding: 6px 10px; }
.jabdam-link-input-icon { font-size: 15px; flex-shrink: 0; }
.jabdam-link-input { flex: 1; border: none; background: transparent; font-size: 13px; color: var(--color-text-primary); outline: none; padding: 0; min-width: 0; }
.jabdam-link-input::placeholder { color: var(--color-text-muted); }
.jabdam-link-clear { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 13px; padding: 0 4px; flex-shrink: 0; }
.jabdam-link-clear:hover { color: var(--color-danger); }
.jabdam-link-preview { margin-top: 8px; }

/* 링크 카드 (글 작성 미리보기 & 게시글 표시 공통) */
.jabdam-link-card { display: flex; align-items: center; gap: 10px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--color-text-primary); transition: border-color .15s, background .15s; margin-bottom: 8px; overflow: hidden; }
.jabdam-link-card:hover { border-color: var(--color-primary); background: var(--color-primary-bg); }
.jabdam-link-card__domain { font-size: 12px; font-weight: 700; color: var(--color-primary); white-space: nowrap; flex-shrink: 0; }
.jabdam-link-card__url { font-size: 11px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jabdam-link-card { flex-direction: column; align-items: flex-start; }

/* 유튜브 카드 */
.jabdam-link-card--yt { flex-direction: row; align-items: center; padding: 0; overflow: hidden; }
.jabdam-link-card__thumb-wrap { position: relative; flex-shrink: 0; width: 120px; height: 72px; }
.jabdam-link-card__thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.jabdam-link-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.65); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 11px; pointer-events: none; }
.jabdam-link-card--yt .jabdam-link-card__meta { flex: 1; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* 유저가 올린 토론왕 주제 힌트 */
.ai-debate-user-hint {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border: 1.5px solid #c3d1f7;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 12px 0;
  text-align: center;
}
[data-theme="dark"] .ai-debate-user-hint {
  background: rgba(99,130,240,.12);
  border-color: rgba(99,130,240,.3);
}

/* 피드 - 유저 주제 올리기 폼 */
.debate-topic-form { margin-bottom: 14px; }
