/* 홈: 히어로, 섹션 제목, 종류 필터, 게임 카드 */
/* 게임 아이콘 (SVG) */
.game-card .icon svg { width: 40px; height: 40px; display: block; }
.hero { text-align: center; padding: 24px 0 28px; }
.hero h1 {
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0 0 8px;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.hero h1 span { color: var(--red-hi); }
.hero p { margin: 0; color: var(--muted); }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.rank-all-btn { padding: 6px 12px; font-size: 13px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(160deg, var(--card-hi), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-3px); border-color: var(--red); outline: none; }
.game-card .icon { font-size: 34px; line-height: 1; }
.game-card h3 { margin: 0; font-size: 18px; }
.game-card p { margin: 0; color: var(--muted); font-size: 14px; }
.game-card .meta { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.hero h1 span { display: inline-block; }
/* 홈: 종류 필터 */
.filter-chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip small { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--red); }
.chip[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.game-card[hidden] { display: none; }
.game-card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #0000003a; }
.game-card .icon svg { width: 40px; height: 40px; }
@media (max-width: 560px) {
  /* 좁은 화면: 2열의 작은 카드로 (17개를 한눈에) */
  .hero { padding: 10px 0 18px; }
  .hero h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero p { font-size: 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-card { padding: 12px; gap: 6px; border-radius: 14px; box-shadow: 0 6px 16px #0006; }
  .game-card .icon { width: 36px; height: 36px; border-radius: 10px; font-size: 24px; }
  .game-card .icon svg { width: 32px; height: 32px; }
  .game-card h3 { font-size: 15px; line-height: 1.3; word-break: keep-all; }
  .game-card p {
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .game-card .meta { gap: 4px; }
  .game-card .tag { font-size: 11px; padding: 1px 6px; }
  .game-card .tag.genre { display: none; }
}
/* 홈 히어로: 캐릭터 + 제목 */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  text-align: left;
  margin: 4px 0 22px;
  padding: 26px 22px 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 260px at 85% 40%, rgba(255, 45, 75, .28), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(6, 5, 9, .55));
  z-index: -1;
  pointer-events: none;
}
.hero-art { order: 2; }
.hero-copy { order: 1; padding-bottom: 26px; align-self: center; min-width: 0; }
.hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--red-hi);
  background: rgba(255, 45, 75, .1);
  border: 1px solid rgba(255, 45, 75, .28);
}
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 6vw, 46px); font-weight: 900; letter-spacing: -.045em; line-height: 1.08; }
.hero h1 span {
  color: transparent;
  background: linear-gradient(180deg, #ff6b80, #ff2d4b 55%, #c3122f);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }
.hero-art {
  width: clamp(140px, 26vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float { 50% { transform: translateY(-6px); } }
@media (max-width: 560px) {
  .hero { padding: 20px 16px 0; gap: 0; border-radius: 20px; }
  .hero-copy { padding-bottom: 20px; }
  .hero h1 { font-size: clamp(24px, 7.4vw, 32px); }
  .hero p { font-size: 13px; }
  .hero-art { width: 120px; margin-right: -12px; }
}
/* 섹션 제목 */
.section-title { margin: 6px 2px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rank-all-btn { min-height: 36px; padding: 0 14px; font-size: 13px; letter-spacing: 0; text-transform: none; border-radius: 999px; }
/* 필터 칩: 분할 컨트롤 */
.filter-chips {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 100%;
}
.chip { min-height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; padding: 0 14px; }
.chip:hover { color: var(--text); border: 0; }
.chip[aria-selected="true"] { background: linear-gradient(180deg, #ff4a64, #d8173a); color: #fff; box-shadow: var(--glow); }
/* 게임 카드 */
.grid { gap: 12px; }
.game-card {
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(240px 140px at 20% 0%, rgba(255, 45, 75, .18), transparent 70%);
  transition: opacity .25s var(--ease);
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 75, .45);
  box-shadow: var(--shadow), 0 18px 40px -18px rgba(255, 45, 75, .45);
}
.game-card:hover::before, .game-card:focus-visible::before { opacity: 1; }
.game-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8);
}
.game-card .icon svg { width: 40px; height: 40px; border-radius: 10px; }
.game-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.game-card p { font-size: 13.5px; line-height: 1.45; }
@media (max-width: 560px) {
  .game-card { padding: 13px; border-radius: 18px; box-shadow: var(--shadow); }
  .game-card .icon { width: 42px; height: 42px; border-radius: 12px; }
  .game-card .icon svg { width: 34px; height: 34px; }
  .game-card h3 { font-size: 15.5px; }
  .game-card p { font-size: 12.5px; }
}
/* 게임 카드: 생성한 아이콘 그림 (상자를 꽉 채움) */
.game-card .icon:has(img) { padding: 0; overflow: hidden; }
.game-card .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 span {
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(224, 100, 154, .35));
}
.hero {
  border-radius: 24px;
  border: 1px solid var(--line-hi);
  background:
    radial-gradient(380px 280px at 84% 26%, rgba(224, 100, 154, .22), transparent 70%),
    radial-gradient(320px 220px at 8% 96%, rgba(130, 60, 140, .16), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .014) 3px 4px),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)),
    var(--bg-2);
  box-shadow: var(--shadow), 0 0 60px -30px rgba(224, 100, 154, .4);
}
.hero::after { background: linear-gradient(transparent, rgba(10, 7, 16, .6)); }
.hero-kicker {
  color: var(--blue-hi);
  background: var(--blue-dim);
  border: 1px solid rgba(224, 100, 154, .32);
  box-shadow: 0 0 14px -4px rgba(224, 100, 154, .5), 0 1px 0 rgba(255, 255, 255, .07) inset;
  letter-spacing: .18em;
}
.hero h1 { letter-spacing: -.03em; }
.hero p { color: var(--muted); }
.hero-art {
  filter:
    drop-shadow(0 0 24px rgba(224, 100, 154, .38))
    drop-shadow(0 20px 28px rgba(0, 0, 0, .75));
  -webkit-mask-image: linear-gradient(#000 74%, transparent 98%);
  mask-image: linear-gradient(#000 74%, transparent 98%);
  animation: hero-float 6.5s ease-in-out infinite;
}
@keyframes hero-float { 50% { transform: translateY(-6px); } }
.section-title { margin: 10px 2px 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-title > span { display: inline-flex; align-items: center; gap: 8px; }
.section-title > span::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  box-shadow: 0 0 8px rgba(224, 100, 154, .8);
}
.rank-all-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.filter-chips {
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  max-width: 100%;
}
.chip {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { color: var(--text); border: 0; background: var(--surface-hi); }
.chip small { font-size: 11px; opacity: .75; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.chip[aria-selected="true"] {
  background: linear-gradient(180deg, #e878a8, #d04f80 55%, #6e1a3c);
  color: #fff;
  box-shadow: var(--glow), 0 1px 0 rgba(255, 255, 255, .4) inset;
}
.chip[aria-selected="true"] small { background: rgba(40, 0, 20, .3); opacity: .95; }
.grid { gap: 12px; }
.game-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.game-card::before { background: radial-gradient(240px 150px at 22% 0%, rgba(224, 100, 154, .16), transparent 70%); }
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 100, 154, .45);
  box-shadow: var(--shadow), 0 18px 44px -18px rgba(224, 100, 154, .4);
}
.game-card:hover::before, .game-card:focus-visible::before { opacity: 1; }
.game-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a1b34, #170f1f);
  border: 1px solid var(--line-hi);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 10px 20px -10px rgba(0, 0, 0, .9);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.game-card:hover .icon {
  border-color: rgba(224, 100, 154, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 0 20px -2px rgba(224, 100, 154, .5);
  transform: translateY(-1px);
}
.game-card h3 { font-weight: 800; letter-spacing: -.025em; }
.game-card p { color: var(--muted); }
@media (max-width: 400px) {
  /* 필터 칩: 한 줄에 꽉 차게 */
  .filter-chips { display: flex; width: 100%; }
  .chip { flex: 1; justify-content: center; padding: 0 8px; font-size: 12.5px; min-height: 32px; }
  .chip small { font-size: 10px; padding: 0 5px; }
  /* 히어로: 캐릭터 축소, 텍스트 우선 */
  .hero { padding: 18px 14px 0; gap: 0; border-radius: 20px; }
  .hero-copy { padding-bottom: 18px; }
  .hero-kicker { font-size: 10px; letter-spacing: .14em; padding: 3px 8px; }
  .hero h1 { font-size: clamp(23px, 7.2vw, 30px); }
  .hero p { font-size: 12.5px; }
  .hero-art { width: 104px; margin-right: -14px; }
  /* 카드 */
  .game-card { padding: 12px; border-radius: 18px; }
  .game-card .icon { width: 42px; height: 42px; border-radius: 12px; }
  .game-card .icon svg { width: 34px; height: 34px; }
  .game-card h3 { font-size: 15px; }
  .game-card p { font-size: 12px; }
  .section-title { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none !important; }
}
.hero h1 { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art {
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title > .section-actions { margin-left: auto; }
.section-title > .section-actions::before { content: none; }
/* 액센트 바 중복 제거 */
.section-actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gb-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .section-title { flex-wrap: wrap; row-gap: 8px; }
  .gb-btn, .rank-all-btn { min-height: 32px; padding: 0 11px; font-size: 12px; }
}

/* 접속자 수: 히어로 오른쪽 위에 비스듬히 붙인 방송 화면 표시 (REC 불빛 + 현재 접속, 그 아래 오늘 방문) */
.hero .live-stats {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 6px;
  transform: rotate(-5deg);
  transform-origin: 100% 0;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.live-stats .live-stat { display: flex; align-items: center; }
.live-stats .live-num { font-style: italic; font-weight: 900; letter-spacing: -.03em; line-height: 1; transition: opacity .3s; }
.live-stats .live-num.is-loading { opacity: .35; }
.live-stats .live-label { max-width: 8em; font-weight: 700; line-height: 1.1; text-wrap: balance; }
/* 현재 접속: 양 끝이 기울어진 판. 테두리는 바깥(빨강)과 안(어두운 판) 두 겹으로 낸다 */
.live-stats .is-now {
  position: relative;
  isolation: isolate;
  gap: 9px;
  padding: 7px 18px 7px 16px;
  clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  background: linear-gradient(100deg, #ff2d4b, rgba(255, 45, 75, .25) 55%, rgba(255, 158, 194, .5));
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
}
.live-stats .is-now::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: polygon(10.6px 0, 100% 0, calc(100% - 10.6px) 100%, 0 100%);
  background: linear-gradient(100deg, rgba(34, 6, 12, .94), rgba(12, 7, 10, .9));
}
.live-stats .live-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2338;
  box-shadow: 0 0 0 3px rgba(255, 35, 56, .18), 0 0 12px 2px rgba(255, 35, 56, .9);
  animation: live-rec 1.6s ease-in-out infinite;
}
@keyframes live-rec { 0%, 45% { opacity: 1; } 60%, 85% { opacity: .28; } 100% { opacity: 1; } }
.live-stats .is-now .live-num { font-size: 26px; color: #fff; text-shadow: 0 0 14px rgba(255, 60, 85, .55); }
.live-stats .is-now .live-label { font-size: 11px; color: #ffc2cb; }
/* 오늘 방문: 판 없이 한 줄, 왼쪽에 가는 선 */
.live-stats .is-today { gap: 7px; margin-right: 14px; }
.live-stats .is-today::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 158, 194, .7)); }
.live-stats .is-today .live-label { font-size: 11px; color: var(--muted); max-width: 12em; }
.live-stats .is-today .live-num { font-size: 16px; color: #f1dfe8; }
@media (max-width: 560px) {
  .hero .live-stats { top: 10px; right: 10px; gap: 4px; }
  .live-stats .is-now { gap: 7px; padding: 5px 14px 5px 13px; }
  .live-stats .live-dot { width: 8px; height: 8px; }
  .live-stats .is-now .live-num { font-size: 20px; }
  .live-stats .live-label, .live-stats .is-today .live-label { max-width: 7em; }
  .live-stats .is-today .live-label { text-align: right; }
  .live-stats .is-now .live-label, .live-stats .is-today .live-label { font-size: 10px; }
  .live-stats .is-today .live-num { font-size: 14px; }
  .live-stats .is-today::before { width: 16px; }
}
@media (prefers-reduced-motion: reduce) { .live-stats .live-dot { animation: none; } }

/* 매칭 대기 표시: 게임 카드 오른쪽 위의 빨간 불빛 + MATCHING (홈 배너의 REC 불빛과 같은 깜빡임) */
.game-card .mm-live {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  color: #ffd3da;
  background: rgba(34, 6, 12, .88);
  border: 1px solid rgba(255, 60, 85, .55);
  box-shadow: 0 0 14px -4px rgba(255, 45, 75, .8);
  pointer-events: none;
}
.game-card .mm-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2338;
  box-shadow: 0 0 8px 1px rgba(255, 35, 56, .9);
  animation: live-rec 1.6s ease-in-out infinite;
}
@media (max-width: 560px) {
  .game-card .mm-live { top: 8px; right: 8px; padding: 3px 7px 3px 6px; font-size: 9.5px; gap: 5px; }
  .game-card .mm-live i { width: 6px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) { .game-card .mm-live i { animation: none; } }

/* 빠른 시작: 배너 아래의 기울어진 판 (접속자 표시와 같은 모양 말투). 누르면 게임을 고르는 창이 뜬다 */
.quick-start {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 14px 0 6px;
  padding: 13px 26px 13px 22px;
  border: 0;
  background: linear-gradient(100deg, #ff2d4b, rgba(255, 45, 75, .3) 48%, rgba(255, 158, 194, .55));
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: filter .2s ease;
}
.quick-start::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: polygon(13.6px 0, 100% 0, calc(100% - 13.6px) 100%, 0 100%);
  background: linear-gradient(100deg, rgba(58, 8, 20, .96), rgba(16, 8, 14, .94) 60%);
  transition: background .2s ease;
}
.quick-start:hover::before, .quick-start:focus-visible::before { background: linear-gradient(100deg, rgba(96, 12, 30, .96), rgba(26, 10, 20, .94) 70%); }
.quick-start:focus-visible { outline: none; filter: drop-shadow(0 0 6px rgba(255, 90, 110, .9)); }
.quick-start:active { filter: brightness(1.15); }
.quick-start .qs-bolt { flex: none; display: grid; place-items: center; color: #ff5a70; filter: drop-shadow(0 0 8px rgba(255, 45, 75, .8)); }
.quick-start .qs-copy { display: grid; gap: 2px; min-width: 0; }
.quick-start .qs-copy b { font-size: 19px; font-style: italic; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.quick-start .qs-copy small { font-size: 12.5px; font-weight: 600; color: #ffc2cb; line-height: 1.3; }
@media (max-width: 560px) {
  .quick-start { gap: 11px; margin: 12px 0 4px; padding: 11px 20px 11px 18px; }
  .quick-start .qs-copy b { font-size: 17px; }
  .quick-start .qs-copy small { font-size: 11.5px; }
}

/* 빠른 시작 창: 게임 고르기 */
.modal-card.qs-card { text-align: left; padding: 24px 20px 20px; }
.qs-card [hidden] { display: none !important; }
.qs-card h3 { margin: 0 0 4px; font-size: 22px; font-style: italic; font-weight: 900; letter-spacing: -.02em; }
.modal-card.qs-card .qs-lead { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
/* 지금 매칭 중인 사람 수 (2026-11-30 사용자 지시 "빠른 시작에 몇 명이 매칭중인지 표시해"): 고르기 안내 오른쪽의 작은 알약. 깜빡이는 점 = 실시간 */
.qs-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 45, 75, .2), rgba(255, 45, 75, .08)); border: 1px solid rgba(255, 90, 110, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .3); color: #ffd4da; font-size: 12.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-live[hidden] { display: none; }
.qs-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff2d4b; animation: qs-wait-pulse 1.4s ease-out infinite; }
.qs-list { display: grid; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; max-height: min(46vh, 340px); overflow-y: auto; }
.qs-game {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.qs-game input { position: absolute; opacity: 0; pointer-events: none; }
.qs-game .qs-art { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; font-size: 26px; background: rgba(0, 0, 0, .3); }
.qs-game .qs-art img { width: 100%; height: 100%; object-fit: cover; }
.qs-game .qs-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; }
.qs-game .qs-check {
  flex: none;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, .28);
  transition: background .15s ease, border-color .15s ease;
}
.qs-game:has(input:checked) { border-color: rgba(255, 60, 85, .6); background: rgba(255, 45, 75, .09); }
.qs-game input:checked ~ .qs-check { background: #ff2d4b; border-color: #ff2d4b; }
.qs-game input:checked ~ .qs-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 10px;
  height: 5px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}
.qs-game:has(input:focus-visible) { outline: 2px solid var(--red-hi); outline-offset: 2px; }
/* 바로 READY 스위치 (2026-11-30): 파인 홈 안에서 빛을 받는 둥근 손잡이가 미끄러진다 */
.qs-ready { position: relative; display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); cursor: pointer; }
.qs-ready input { position: absolute; opacity: 0; pointer-events: none; }
.qs-ready-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.qs-ready-text b { font-size: 15px; font-weight: 800; line-height: 1.25; }
.qs-ready-text small { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.qs-switch { flex: none; position: relative; width: 50px; height: 28px; border-radius: 14px; background: linear-gradient(180deg, #0c0a0d, #221d22); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .75), inset 0 -1px 0 rgba(255, 255, 255, .1); transition: background .18s ease; }
.qs-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffffff, #c9c3c8 60%, #8f878d); box-shadow: 0 2px 3px rgba(0, 0, 0, .55), inset 0 -1px 1px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.qs-ready input:checked ~ .qs-switch { background: linear-gradient(180deg, #a3132c, #ff2d4b); box-shadow: inset 0 2px 4px rgba(60, 0, 10, .7), inset 0 -1px 0 rgba(255, 255, 255, .25); }
.qs-ready input:checked ~ .qs-switch::after { transform: translateX(22px); }
.qs-ready:has(input:focus-visible) { outline: 2px solid var(--red-hi); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .qs-switch, .qs-switch::after { transition: none; } }
.qs-msg { min-height: 20px; margin: 6px 0 10px; font-size: 13px; font-weight: 600; color: #ffb4bf; }
.modal-card.qs-card .row { justify-content: flex-end; }

/* 빠른 시작 대기 칩 (js/quick-pool.js): 어느 화면에서든 오른쪽 위에 떠서 대기 시간과 취소를 보여 준다.
   예전에는 왼쪽을 사선으로 깎았는데(clip-path) 테두리까지 잘려 왼쪽이 잘린 것처럼 보였다 (2026-11-29 사용자 제보 "왼쪽이 대각선으로 짤려있냐").
   게임 매칭 대기 표시(.hs-mm-chip 등)와 같은 둥근 알약 모양으로 바꿨다. 위·아래·오른쪽 여백을 같게(6px) 둔다 */
.qs-wait {
  position: fixed;
  right: 12px;
  top: 64px;
  z-index: 44;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(58, 8, 20, .97), rgba(16, 8, 14, .95));
  border: 1px solid rgba(255, 90, 110, .7);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
  color: #fff;
  animation: qs-wait-in .3s cubic-bezier(.2, .9, .3, 1.2);
}
.qs-wait[hidden] { display: none !important; }
@keyframes qs-wait-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.qs-wait-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff2d4b;
  box-shadow: 0 0 0 0 rgba(255, 45, 75, .7);
  animation: qs-wait-pulse 1.4s ease-out infinite;
}
@keyframes qs-wait-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 75, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 45, 75, 0); } }
.qs-wait-text { display: grid; line-height: 1.15; min-width: 0; }
.qs-wait-text b { font-size: 12.5px; font-style: italic; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .2em; } /* 기울인 글자 끝이 잘리지 않게 */
.qs-wait-text [data-clock] { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffc2cb; }
.qs-wait-line { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.qs-wait-n { font-size: 11.5px; font-weight: 800; color: #ff8fa0; font-variant-numeric: tabular-nums; }
.qs-wait-n[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .qs-live i { animation: none; } }
.qs-wait-x {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 194, 203, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #ffc2cb;
  font-size: 14px;
  cursor: pointer;
}
.qs-wait-x:hover, .qs-wait-x:focus-visible { background: rgba(255, 45, 75, .35); color: #fff; outline: none; }
/* 대기 중 READY 켜고 끄기 (2026-12-01 사용자 지시): 매칭 창의 READY 와 같은 색. 끔 = 반투명 노랑, 켬 = 초록 + 체크 */
.qs-wait-ready {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(245, 200, 80, .6);
  border-radius: 999px;
  background: rgba(245, 200, 80, .12);
  color: #f5d98a;
  font: inherit;
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
}
.qs-wait-ready:hover { background: rgba(245, 200, 80, .2); }
.qs-wait-ready[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, #9af5b4, #34c96a 55%, #178a43);
  color: #03200e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 14px -3px rgba(52, 201, 106, .75);
}
.qs-wait-ready[aria-pressed="true"]::before {
  content: "";
  width: 8px; height: 4px;
  margin: -3px 1px 0 0;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.qs-wait-ready:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .qs-wait, .qs-wait-dot { animation: none; } }
