/* Ticket to Talk — local island styles (site chrome via /assets/css/app.css) */

.ttt-banner {
  margin: 1rem 0 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border, #243044);
  border-radius: 8px;
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--card, #111827) 90%, #1d4ed8 10%);
}

.ttt-hero { padding-bottom: 0.5rem; }

.ttt-modes { margin-top: 0.5rem; }

.ttt-card select {
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.ttt-label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.ttt-class-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.35rem;
}

.ttt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border, #243044);
  background: color-mix(in srgb, var(--card, #111827) 92%, #1d4ed8 8%);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

button.ttt-chip {
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 650;
}

.ttt-class-chip.is-active,
.ttt-class-chip[aria-pressed="true"] {
  border-color: var(--accent, #3b82f6);
  background: color-mix(in srgb, var(--accent, #3b82f6) 22%, var(--card, #111827));
  box-shadow: inset 0 0 0 1px var(--accent, #3b82f6);
}

.ttt-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.ttt-stat-chip { opacity: 0.95; }

.ttt-session-meta { margin: 1rem 0 0.6rem; }

.ttt-progress {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  opacity: 0.9;
}

.ttt-game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0.55rem;
}

.ttt-streak-chip {
  border-color: color-mix(in srgb, #f59e0b 55%, var(--border, #243044));
  background: color-mix(in srgb, var(--card, #111827) 85%, #f59e0b 15%);
}

.ttt-score-chip {
  border-color: color-mix(in srgb, #3b82f6 55%, var(--border, #243044));
}

.ttt-progress-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border, #243044) 80%, transparent);
  overflow: hidden;
}

.ttt-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent, #3b82f6);
  transition: width 160ms ease;
}

.ttt-q { margin-top: 0.5rem; }
.ttt-stem {
  font-size: 1.05rem;
  font-weight: 650;
  padding: 0 0.25rem;
  margin-bottom: 0.75rem;
}
.ttt-qid {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-right: 0.35rem;
}

.ttt-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 0.25rem;
}

.ttt-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border, #243044);
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  position: relative;
}
.ttt-choice:hover,
.ttt-choice:focus-within {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: 2px;
}
.ttt-choice.is-selected {
  border-color: var(--accent, #3b82f6);
  box-shadow: inset 3px 0 0 var(--accent, #3b82f6);
}
.ttt-choice.is-correct {
  border-color: #16a34a;
  box-shadow: inset 3px 0 0 #16a34a;
  background: color-mix(in srgb, #16a34a 12%, transparent);
}
.ttt-choice.is-wrong {
  border-color: #dc2626;
  box-shadow: inset 3px 0 0 #dc2626;
  background: color-mix(in srgb, #dc2626 12%, transparent);
}
.ttt-choice input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.ttt-choice-mark {
  font-weight: 700;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.ttt-sr-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ttt-hint {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent, #3b82f6);
  background: color-mix(in srgb, var(--card, #111827) 85%, #1d4ed8 15%);
  border-radius: 0 8px 8px 0;
}

.ttt-feedback {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border, #243044);
}
.ttt-feedback.ok {
  border-left: 4px solid #16a34a;
  background: color-mix(in srgb, #16a34a 10%, transparent);
}
.ttt-feedback.bad {
  border-left: 4px solid #dc2626;
  background: color-mix(in srgb, #dc2626 10%, transparent);
}

@keyframes ttt-flash-ok {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #16a34a 55%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes ttt-flash-bad {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #dc2626 55%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.ttt-flash-ok {
  animation: ttt-flash-ok 0.55s ease-out;
}
.ttt-flash-bad {
  animation: ttt-flash-bad 0.55s ease-out;
}

.ttt-result.pass { border-left: 4px solid #16a34a; }
.ttt-result.fail { border-left: 4px solid #dc2626; }
.ttt-result.drill { border-left: 4px solid var(--accent, #3b82f6); }
.ttt-score { font-size: 1.15rem; }

.ttt-pass-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #14532d;
  background: color-mix(in srgb, #16a34a 28%, #ecfdf5 72%);
  border: 2px solid #16a34a;
}

.ttt-miss-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.ttt-miss-list li { margin: 0.55rem 0; }

.ttt-actions { margin-top: 1rem; flex-wrap: wrap; gap: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .ttt-flash-ok,
  .ttt-flash-bad,
  .ttt-progress-fill { animation: none !important; transition: none !important; }
}

.ttt-diagram {
  margin: 0.75rem 0 1rem;
  max-width: 100%;
}
.ttt-diagram img {
  display: block;
  max-width: min(100%, 420px);
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
}

.ttt-checklist-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}
.ttt-checklist-list li { margin: 0.45rem 0; }
.ttt-postpass .actions { margin-top: 0.75rem; }
.ttt-postpass a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ttt-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ttt-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  background: var(--card, #111827);
  border: 2px solid var(--accent, #3b82f6);
  border-radius: 8px;
}


/* Touch targets (#7) — primary controls ≥44×44 */
.ttt-island .btn,
.ttt-island button.btn,
.ttt-island a.btn,
.btn,
button.btn,
a.btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ttt-choice {
  min-height: 44px;
  min-width: 44px;
}

.ttt-funnel-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.ttt-funnel-list li {
  margin: 0.55rem 0;
  line-height: 1.45;
}
.ttt-nearmiss { border-left: 4px solid #ca8a04; }
.ttt-encourage { border-left: 4px solid var(--accent, #3b82f6); }
