/* g36 两真一假 - 样式 */

.g36-root {
  --cream: #fff8e8;
  --ink: #24233a;
  --pink: #ffb8c9;
  --purple: #bfc3ff;
  --yellow: #ffe26f;
  --mint: #aee8df;
  --radius: 16px;
  --border: 3px solid var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.g36-root * { box-sizing: border-box; }

.g36-setup, .g36-game, .g36-finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
}

.g36-setup h2, .g36-finish h2 {
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

.g36-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.g36-field label {
  font-size: 1rem;
  font-weight: 600;
}

.g36-field input {
  width: 80px;
  height: 48px;
  font-size: 1.2rem;
  text-align: center;
  border: var(--border);
  border-radius: var(--radius);
  background: white;
}

.g36-btn {
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  border: var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  touch-action: manipulation;
}

.g36-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.g36-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.g36-btn--primary {
  background: var(--pink);
  box-shadow: 0 4px 0 var(--ink);
}

.g36-btn--secondary {
  background: var(--purple);
  box-shadow: 0 4px 0 var(--ink);
}

.g36-btn--warn {
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--ink);
}

.g36-btn--mint {
  background: var(--mint);
  box-shadow: 0 4px 0 var(--ink);
}

.g36-btn--ghost {
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: none;
}

/* 讲述者选择 */
.g36-speaker-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.g36-speaker-info {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.g36-statements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.g36-statement {
  background: white;
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.g36-statement:hover {
  background: #f9f9f9;
}

.g36-statement--selected {
  background: var(--pink);
  border-color: var(--ink);
}

.g36-statement-label {
  font-weight: 700;
  margin-bottom: 8px;
}

/* 遮挡状态 */
.g36-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.g36-hidden-msg {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  background: var(--purple);
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

/* 猜测阶段 */
.g36-guessing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.g36-guesser-info {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.g36-guess-buttons {
  display: flex;
  gap: 12px;
}

.g36-guess-btn {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  font-weight: 800;
  border: var(--border);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}

.g36-guess-btn:hover {
  background: #f9f9f9;
}

.g36-guess-btn--selected {
  background: var(--yellow);
}

/* 揭晓 */
.g36-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.g36-reveal-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.g36-reveal-answer {
  background: var(--pink);
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
}

.g36-guesses-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.g36-guess-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 16px;
}

.g36-guess-row--correct {
  background: var(--mint);
}

.g36-guess-row--wrong {
  background: #ffe5e5;
}

/* 排行榜 */
.g36-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.g36-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
}

.g36-score-row--top {
  background: var(--yellow);
}

.g36-score-name { font-weight: 600; }
.g36-score-value { font-weight: 800; font-size: 1.2rem; }

.g36-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .g36-btn { transition: none; }
  .g36-btn:active { transform: none; }
}

@media (max-width: 360px) {
  .g36-root { padding: 12px 8px; }
  .g36-actions { gap: 8px; }
  .g36-btn { padding: 10px 16px; font-size: 1rem; }
  .g36-guess-btn { width: 56px; height: 56px; font-size: 1.3rem; }
}
