/* g37 我有你没有 - 样式 */

.g37-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;
}

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

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

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

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

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

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

.g37-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;
}

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

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

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

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

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

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

.g37-round-info {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
}

.g37-reader {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 700;
}

.g37-prompt-card {
  background: white;
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.g37-prompt-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #666;
}

.g37-prompt-text {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 600;
}

.g37-hint {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  max-width: 300px;
}

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

.g37-progress {
  display: flex;
  gap: 8px;
}

.g37-progress-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
}

.g37-progress-dot--done {
  background: var(--mint);
}

.g37-finish-msg {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

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

@media (max-width: 360px) {
  .g37-root { padding: 12px 8px; }
  .g37-prompt-card { padding: 16px; }
  .g37-actions { gap: 8px; }
  .g37-btn { padding: 10px 16px; font-size: 1rem; }
}
