/* extra 화면 전용 (토스 규칙 적용, 2026-11-26). 공용 부품은 style.css */

/* 게임 시작 화면 (토스: 한 줄 설명 + 큰 버튼 하나) */
.g-start { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 0; }
.g-intro { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); word-break: keep-all; }
.g-meta { margin: 0 0 12px; font-size: 14px; color: var(--faint); }
.g-start .btn.primary, .g-start .btn { width: 100%; min-height: 52px; font-size: 16px; }
.g-start .mc-resume-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game [data-role="result"] { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 12px 0 0; }
.game [data-role="result"].hidden { display: none; }
.game [data-role="result"] h2 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.game [data-role="result"] .btn.primary { width: 100%; min-height: 52px; font-size: 16px; margin-top: 12px; }
/* 일정 추가 창 */
.tt-tone { display: block; }
/* 게임 진행 화면: 테두리 상자 대신 회색 칸, 다음 버튼은 가로 전체 */
.sp-card { border: 0; background: var(--raised); border-radius: 18px; }
.mt-item { border: 0 !important; background: var(--raised); border-radius: 14px; min-height: 52px; font-weight: 600; transition: background-color 120ms ease, transform 120ms var(--ease); }
.mt-item:active { transform: scale(.97); }
.mc-feedback { border: 0; border-radius: 14px; }
.mc-feedback .btn { width: 100%; min-height: 48px; margin-top: 10px; }
.mt-item.is-sel { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent); }
.mt-item.is-done { background: var(--ok-soft); color: var(--ok); }
.mt-item.is-bad { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 2px var(--danger); }

/* 시작 화면에서는 게임 카드가 내용만큼만 (빈 공간 없이), 설명과 버튼 사이는 띄운다 */
.card.game:has(> [data-role="start"]:not(.hidden)), .card.game:has(> .game-start:not(.hidden)) { min-height: 0; }
.g-start > .g-intro:not(:has(+ .g-meta)) { margin-bottom: 12px; }
.g-start > :last-child:is(p) { margin-bottom: 0; }

/* 고르는 조각(so-seg): 테두리 상자와 검은 선택 대신 연한 바탕, 고르면 파랑 */
.so-seg { border: 0; background: var(--raised); color: var(--ink); border-radius: 12px; min-height: 40px; transition: background-color 120ms ease, transform 120ms var(--ease); }
.so-seg:active:not(:disabled) { transform: scale(.97); }
.so-seg.is-on { background: var(--accent); color: var(--on-accent, #fff); }
.so-row.is-wrong .so-seg.is-on, .so-seg.is-bad { background: var(--danger-soft); color: var(--danger); }
.so-row.is-wrong .so-seg.is-answer, .so-seg.is-answer { background: var(--ok-soft); color: var(--ok); }
.pl-opts .so-seg { padding: 12px 18px; }
@media (max-width: 720px) {
  .card.game .btn.primary { width: 100%; min-height: 52px; font-size: 16px; }
}

/* 게임 시작 화면의 세 칸: 내 최고 기록 | 반 1등 | 내 순위 */
.g-board { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 12px; padding: 14px 0; border-radius: 16px; background: var(--raised); }
.g-board div { display: grid; gap: 4px; justify-items: center; padding: 0 6px; }
.g-board div + div { border-left: 1px solid var(--rule); }
.g-board dt { font-size: 12.5px; color: var(--muted); }
.g-board dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-board dd small { font-size: 13px; font-weight: 500; color: var(--faint); }

/* 2026-11-27 슬랙 의견: 시작 화면에 버튼 하나뿐이면 흰 칸 없이 버튼만. 다시 듣기의 재생 표시가 글자와 겹치지 않게 */
.card.game:has(> [data-role="start"]:not(.hidden) > :only-child) { background: none; box-shadow: none; padding: 0; }
.card.game:has(> [data-role="start"]:not(.hidden) > :only-child) .g-start { padding: 0; }
.btn.mc-say { padding-left: 40px; }
