/* 게임 방법(가이드) 공통 스타일. 연습 판 모양은 게임 CSS가 정한다. */

.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guide-progress {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

/* 단계 점: 지금 단계는 길게, 지난 단계는 진하게 (색만이 아니라 모양으로도 구별) */
.guide-dots {
  display: flex;
  gap: 6px;
}

.guide-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--slate-200);
}

.guide-dots .dot.seen {
  background: var(--indigo-200);
}

.guide-dots .dot.on {
  width: 22px;
  background: var(--accent);
}

#guide-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.4;
  outline: none;
}

#guide-body p {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.65;
}

#guide-body strong {
  color: var(--indigo-700);
}

.guide-demo {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.guide-demo .caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.guide-demo > button {
  min-width: 160px;
}

.guide-feedback {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.guide-feedback.good {
  color: var(--emerald-700);
}

.guide-feedback.good::before {
  content: '✓ ';
}

.guide-feedback.try {
  color: var(--amber-700);
}

/* 이전·다음은 화면 아래에 붙여 둔다 (좁은 화면에서 판을 보느라 내려가도 바로 누를 수 있게) */
.guide-nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin: 14px -16px 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.guide-exit {
  margin: 16px 0 0;
  text-align: center;
}

.guide-exit a {
  color: var(--accent);
  font-weight: 600;
}

/* 대기 화면 창 안(embed)에서는 이름줄·나가기 링크를 숨기고 여백을 줄인다 */
body.embed {
  background: var(--surface);
}

body.embed main {
  padding: 12px;
}

body.embed .guide-nav {
  margin: 10px -12px 0;
  padding: 10px 12px;
  background: var(--surface);
}

body.embed :is(.brand, h1, .guide-exit) {
  display: none;
}

body.embed .guide-card {
  border: 0;
  box-shadow: none;
  padding: 4px;
}
