/* Shared game furniture. Each game may add its own scoped styles below its section. */
.game { position: relative; display: grid; gap: 16px; }
.game-stage {
  position: relative; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: inset 0 0 0 3px rgba(29, 40, 73, 0.08), var(--shadow);
}
.game-stage canvas { display: block; width: 100%; height: auto; touch-action: none; }
.game-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.game-row .input { flex: 1 1 260px; }
.game-hint { font-size: 0.95rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; background: #f1e8d8; color: var(--navy);
  font-family: var(--font-hand); font-size: 1.1rem; transition: transform 0.2s var(--ease-pop), background 0.2s;
}
.chip-btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--sticky); }
.source-badge {
  display: inline-block; font-family: var(--font-title); font-weight: 600; font-size: 0.8rem; padding: 4px 10px;
  border-radius: 999px; background: var(--navy); color: var(--cream);
}
.source-badge[data-source='builtin'], .source-badge[data-source='offline'] { background: #8a6a3a; }
.source-badge[data-source='guard'] { background: var(--grass); }
.loading { display: flex; align-items: center; gap: 12px; font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink-soft); padding: 10px 0; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-8px); opacity: 1; } }
.result-card {
  background: var(--paper); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow);
  animation: rise-in 0.5s var(--ease-pop);
}
.result-card h3 { margin-bottom: 0.3em; }
.two-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  border: 0; border-radius: 20px; padding: 18px 12px; cursor: pointer; font-family: var(--font-title); font-weight: 600;
  font-size: 1.15rem; color: var(--navy); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16); transition: transform 0.18s var(--ease-pop);
}
.choice:hover { transform: translateY(-3px); }
.choice:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16); }
.choice-left { background: #cfe9f6; }
.choice-right { background: #d9eab5; }
.score-line { display: flex; justify-content: space-between; font-family: var(--font-title); font-size: 1.05rem; color: var(--navy); }
.feedback { font-family: var(--font-hand); font-size: 1.25rem; min-height: 1.6em; }
.feedback.good { color: var(--grass); }
.feedback.oops { color: var(--red); }
.shake { animation: shake 0.45s ease; }
.pop { animation: pop-in 0.45s var(--ease-pop); }
