.db-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.db-field legend { font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0; }
.db-optional { font-weight: 500; color: var(--muted); }
.db-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.db-best { margin: 0; background: var(--sand); border-radius: 14px; padding: 10px 14px; color: var(--ink); }
.btn-lg { font-size: 1.1rem; padding: 16px 28px; }

.db-play { flex: 1; display: flex; flex-direction: column; background: #2c3a57; }
.db-hud { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #5a1a5e; }
.db-progress { flex: 1; height: 8px; background: rgba(255, 250, 242, 0.25); border-radius: 999px; overflow: hidden; }
.db-progress span { display: block; height: 100%; width: 0; background: var(--amber); }
.db-end { font: inherit; font-weight: 700; color: var(--cream); background: transparent; border: 2px solid rgba(255, 250, 242, 0.5); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.db-canvas-wrap { position: relative; flex: 1; min-height: 340px; }
#road { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.db-cue {
  position: absolute; left: 50%; top: 31%; transform: translateX(-50%); margin: 0;
  font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--cream);
  text-shadow: 0 2px 12px rgba(16, 33, 63, 0.6); pointer-events: none; white-space: nowrap;
}
.db-count { font-family: var(--font-body); font-weight: 800; font-size: 0.6em; opacity: 0.85; margin-left: 6px; }
.db-bubble {
  position: absolute; left: 6%; bottom: 43%; max-width: min(320px, 70%); margin: 0; pointer-events: none;
  background: var(--white); color: var(--ink); font-weight: 600; border-radius: 18px 18px 18px 4px;
  padding: 12px 16px; box-shadow: var(--shadow); animation: db-pop .3s ease-out;
}
@keyframes db-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.db-hold {
  font: inherit; font-weight: 800; font-size: 1.15rem; border: 0; cursor: pointer; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  min-height: 84px; margin: 0; padding: 14px; color: var(--ink); background: var(--amber);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.db-hold.is-held { background: #2f8f7b; color: var(--white); }
.db-hold__out { display: none; }
.db-play[data-phase="out"] .db-hold__in, .db-play[data-phase="rest"] .db-hold__in { display: none; }
.db-play[data-phase="out"] .db-hold__out, .db-play[data-phase="rest"] .db-hold__out { display: inline; }
.db-play[data-phase="hold"] .db-hold__in::after { content: " and keep holding"; }
.db-skip, .db-linkbtn { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 10px 0; align-self: flex-start; }
.db-linkbtn { padding: 0; }
.db-low { margin: 0; background: var(--sand); border-radius: 14px; padding: 12px 14px; }
.db-end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
#after-wrap { display: flex; flex-direction: column; gap: 12px; }
.play-page[data-game="danfo-breathe"] .game-foot { background: var(--cream); }
