/* ═══════════════════════════════════════
   FAQ — 플로팅 ? 버튼 + 바텀시트
   (게임/대기실 어디서든 규칙 Q&A. 가이드 본문은 안 건드림)
═══════════════════════════════════════ */

.faq-fab {
  position: fixed; z-index: 80;
  right: calc(max(0px, (100vw - 768px) / 2) + 18px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  width: 54px; height: 54px; border-radius: 50%;
  border: none; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 25px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  box-shadow: 0 12px 26px -6px rgba(90,80,240,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .18s var(--spring, cubic-bezier(.34,1.56,.4,1));
}
.faq-fab:active { transform: scale(.9); }

.faq-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(2,2,6,.6); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
.faq-overlay.show { opacity: 1; pointer-events: auto; }

.faq-sheet {
  width: 100%; max-width: 768px; margin: 0 auto;
  height: min(600px, 76dvh);
  display: flex; flex-direction: column;
  background: #0f0f15; border: 1px solid rgba(255,255,255,.09);
  border-radius: 26px 26px 0 0; padding: 9px 0 0;
  transform: translateY(102%);
  transition: transform .4s var(--spring, cubic-bezier(.22,1,.36,1));
  box-shadow: 0 -20px 50px -12px rgba(0,0,0,.6);
}
.faq-overlay.show .faq-sheet { transform: translateY(0); }

.faq-grip { width: 38px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.2); margin: 5px auto 12px; cursor: pointer; }
.faq-head { display: flex; align-items: center; justify-content: space-between; padding: 0 22px 12px; }
.faq-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: #ececee; }
.faq-close { width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.06); color: #a3a3ac; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.faq-close:active { transform: scale(.92); }

.faq-chips { display: flex; gap: 6px; padding: 2px 22px 14px; }
.faq-chip { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 9px 4px;
  border-radius: 100px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.055);
  color: #a3a3ac; transition: background .18s, border-color .18s, color .18s; }
.faq-chip.on { background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.42); color: #8fd4fb; }

.faq-list { flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 22px calc(env(safe-area-inset-bottom, 0px) + 26px); -webkit-overflow-scrolling: touch; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.055); }
.faq-q { width: 100%; display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  background: none; border: none; text-align: left; padding: 15px 0; color: #ececee;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; }
.faq-q .qm { color: #38bdf8; font-family: 'Space Grotesk', sans-serif; font-weight: 700; flex: 0 0 auto; }
.faq-q .cv { margin-left: auto; flex: 0 0 auto; color: #4a4a52; font-size: 12px; margin-top: 3px;
  transition: transform .28s ease, color .18s; }
.faq-item.open .faq-q .cv { transform: rotate(180deg); color: #38bdf8; }
.faq-a { max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .34s var(--spring, cubic-bezier(.22,1,.36,1)), opacity .28s; }
.faq-item.open .faq-a { opacity: 1; }
.faq-a p { font-size: 13px; color: #a3a3ac; line-height: 1.7; margin: 0; padding: 0 0 16px 22px; }
.faq-a b { color: #ececee; font-weight: 600; }
.faq-a .pc { color: #38bdf8; }
.faq-a .gc { color: #c084fc; }

@media (prefers-reduced-motion: reduce) {
  .faq-fab, .faq-sheet, .faq-overlay, .faq-a, .faq-q .cv, .faq-close { transition: none; }
}
