:root {
  --bg: #f6f3ff;
  --card: #ffffff;
  --line: #e4defa;
  --text: #1d1a2b;
  --sub: #6f6a85;
  --main: #6c4cff; /* 스무고개 */
  --main-soft: #ece7ff;
  --hot: #ff4f81; /* 벌칙 랜덤 */
  --hot-soft: #ffe6ee;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

header, main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

main { padding-top: 8px; padding-bottom: 40px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:disabled { opacity: 0.5; cursor: default; }

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 2px;
}

.brand { font-size: 18px; font-weight: 800; min-height: 44px; }

.link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

h1 { font-size: 26px; margin: 0 0 18px; font-weight: 800; word-break: keep-all; }

/* 시작 */
.hero { font-size: 34px; font-weight: 800; margin: 9vh 0 28px; line-height: 1.25; word-break: keep-all; }

.mode {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 22px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-align: left;
}

.mode .emoji { font-size: 38px; line-height: 1; }
.mode.q { background: var(--main); }
.mode.r { background: var(--hot); }

/* 단추 */
.btn {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.btn.on { border-color: var(--main); background: var(--main-soft); color: var(--main); }
.btn.primary { background: var(--main); border-color: var(--main); color: #fff; font-weight: 800; }
.btn.hot { background: var(--hot); border-color: var(--hot); color: #fff; font-weight: 800; }

.row { display: flex; gap: 10px; margin-top: 14px; }
.row .btn { margin-bottom: 0; font-size: 16px; min-height: 50px; }

/* 질문 위 진행 표시 */
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sub);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.dots i.on { background: var(--main); }

/* 곡 카드 */
.song {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 16px;
  margin-bottom: 12px;
}

.song .title { font-size: 20px; font-weight: 800; word-break: keep-all; overflow-wrap: anywhere; }
.song .artist { color: var(--sub); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.chip {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--main-soft);
  color: var(--main);
  font-size: 13px;
  font-weight: 700;
}

.chip.hot { background: var(--hot-soft); color: var(--hot); }

.acts { display: flex; gap: 8px; margin-top: 14px; }

.acts button, .acts a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.acts .on { border-color: var(--main); background: var(--main-soft); color: var(--main); }

/* 벌칙 랜덤 */
.pick {
  border-radius: 26px;
  background: var(--hot);
  color: #fff;
  padding: 28px 20px;
  margin-bottom: 14px;
  text-align: center;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pick .label { font-size: 15px; font-weight: 700; opacity: 0.9; }
.pick .title { font-size: 30px; font-weight: 800; margin: 10px 0 6px; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }
.pick .artist { font-size: 18px; font-weight: 600; }
.pick .chips { justify-content: center; margin-top: 14px; }
.pick .chip { background: rgba(255, 255, 255, 0.22); color: #fff; }

.empty { color: var(--sub); padding: 40px 0; text-align: center; font-weight: 600; }
