
/* g35 真心话与轻挑战 - 样式 */
/* 统一视觉：奶油底、深墨线、卡通风 */

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

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

/* 设置页 */
.g35-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 16px;
}

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

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

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

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

/* 按钮 */
.g35-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;
}

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

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

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

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

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

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

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

/* 游戏主区域 */
.g35-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.g35-turn-info {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.g35-turn.player-label {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
}

/* 选择类型 */
.g35-type-choices {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.g35-type-btn {
  flex: 1;
  min-width: 140px;
  min-height: 64px;
  font-size: 1.2rem;
}

/* 卡牌 */
.g35-card {
  background: white;
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
}

.g35-card--truth {
  border-color: var(--purple);
  background: #f0f1ff;
}

.g35-card--dare {
  border-color: var(--pink);
  background: #fff0f4;
}

.g35-card-type {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.g35-card-text {
  font-size: 1.2rem;
  line-height: 1.5;
  min-height: 60px;
}

/* 操作按钮区 */
.g35-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 结算页 */
.g35-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.g35-result h2 {
  font-size: 1.5rem;
  margin: 0;
}

.g35-result-stats {
  display: flex;
  gap: 24px;
}

.g35-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.g35-stat-value {
  font-size: 2rem;
  font-weight: 800;
}

.g35-stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* 进度指示 */
.g35-progress {
  display: flex;
  gap: 4px;
  justify-content: center;
}

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

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

.g35-progress-dot--skipped {
  background: var(--yellow);
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  .g35-btn { transition: none; }
  .g35-btn:active { transform: none; }
}

/* 移动端适配 */
@media (max-width: 360px) {
  .g35-root { padding: 12px 8px; }
  .g35-type-btn { min-width: 120px; }
  .g35-card { padding: 16px; }
  .g35-actions { gap: 8px; }
  .g35-btn { padding: 10px 16px; font-size: 1rem; }
}
