/* The Text-Back Trial - styles specific to this tool.
   Shared tokens/buttons/panels/hero/tiles/verdict/footer live in base.css. */

.trial-panel { max-width: 760px; margin: 28px auto 0; }
.trial-app { min-height: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; }

.trial-count { margin: 0 0 8px; font-weight: 800; opacity: 0.8; }

.trial-steps { display: flex; gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; }
.trial-steps li { width: 16px; height: 16px; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); }
.trial-steps li.done { background: var(--mint); }
.trial-steps li.now { background: var(--yolk); transform: scale(1.25); }

.trial-q { font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.08; margin: 0 0 20px; }
.trial-q:focus { outline: none; }

.trial-options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.trial-opt { font-size: 1.05rem; padding: 10px 18px; min-height: 48px; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.trial-opt:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--yolk); }
.trial-opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.trial-opt .emo { font-size: 1.25rem; }

.trial-back { margin-top: 24px; }

/* deliberating */
.trial-gavel { font-size: 4.5rem; margin-top: 40px; transform-origin: 80% 80%; animation: gavel-bang 0.7s ease-in-out infinite alternate; }
.trial-wait-title { font-family: var(--font-display); font-size: 1.6rem; margin: 14px 0 6px; }
.trial-wait-line { margin: 0; font-weight: 700; min-height: 1.6em; }
@keyframes gavel-bang { from { transform: rotate(-22deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .trial-gavel { animation: none; } }

/* verdict */
.court-verdict { width: 100%; }
.court-judge { margin: 0 0 6px; font-weight: 800; }
.court-verdict h2 { margin: 4px 0 14px; overflow-wrap: anywhere; }
.court-verdict h2:focus { outline: none; }
.court-meter-label { margin: 6px 0 0; font-weight: 800; font-size: 0.9rem; opacity: 0.8; }

.court-tiles { grid-template-columns: 1fr; width: 100%; text-align: left; }
.court-tile .court-text { font-weight: 700; line-height: 1.5; }
.court-evidence { margin: 4px 0 0; padding-left: 20px; font-weight: 700; line-height: 1.5; }
.court-evidence li + li { margin-top: 4px; }

.court-reply { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.court-bubble { background: #fff; border: 3px solid var(--ink); border-radius: 18px 18px 18px 4px; padding: 10px 16px; font-weight: 700; line-height: 1.4; }

.court-note { margin: 4px 0 18px; font-size: 0.85rem; font-weight: 700; opacity: 0.7; max-width: 520px; }
