/* Trivia Console Tool Styles (inherits :root tokens from theme/style.css) */
.edg-tc {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
}
.edg-tc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bay);
  border-bottom: 1px solid var(--border);
}
.edg-tc-modes {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.edg-tc-mode-btn {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.edg-tc-mode-btn:hover { border-color: var(--ink); }
.edg-tc-ocean .edg-tc-mode-btn.is-active { background: var(--ocean); color: var(--surface); border-color: var(--ocean); }
.edg-tc-sky .edg-tc-mode-btn.is-active { background: var(--sky); color: var(--surface); border-color: var(--sky); }

.edg-tc-cat-select {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.edg-tc-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.edg-tc-stats strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.edg-tc-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 380px;
}

/* Live Vertical Instrument Gauge */
.edg-gauge {
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.edg-gauge-readout {
  text-align: center;
}
.edg-gauge-meters {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.edg-gauge-zone {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.edg-gauge-track {
  position: relative;
  width: 24px;
  height: 220px;
  border-radius: var(--radius);
  background: var(--bay);
  border: 1px solid var(--border);
  overflow: hidden;
}
.edg-gauge-fill {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--edg-pct, 0%);
  transition: height 350ms ease;
}
.edg-tc-ocean .edg-gauge-fill { top: 0; background: var(--ocean); }
.edg-tc-sky .edg-gauge-fill { bottom: 0; background: var(--sky); }

.edg-gauge-pin {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ink);
  transform: translate(-50%, -50%);
  transition: top 350ms ease, bottom 350ms ease;
}
.edg-tc-ocean .edg-gauge-pin { top: var(--edg-pct, 0%); }
.edg-tc-sky .edg-gauge-pin { bottom: var(--edg-pct, 0%); transform: translate(-50%, 50%); }

.edg-gauge-dir {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

/* Main Stage */
.edg-tc-stage {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edg-tc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.edg-tc-round {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}
.edg-tc-cat-badge {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}
.edg-tc-ocean .edg-tc-cat-badge { background: var(--ocean-soft); color: var(--ocean-dark); }
.edg-tc-sky .edg-tc-cat-badge { background: var(--sky-soft); color: var(--sky-dark); }

.edg-tc-timer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.edg-tc-timer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 40px;
  text-align: right;
}
.edg-tc-timer.is-low { color: var(--danger); }
.edg-tc-timer-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius);
  background: var(--bay);
  overflow: hidden;
}
.edg-tc-timer-bar {
  height: 100%;
  width: 100%;
  transition: width 250ms linear;
}
.edg-tc-ocean .edg-tc-timer-bar { background: var(--ocean); }
.edg-tc-sky .edg-tc-timer-bar { background: var(--sky); }

.edg-tc-prompt {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
}

.edg-tc-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.edg-tc-input {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 150ms ease;
}
.edg-tc-ocean .edg-tc-input:focus { border-color: var(--ocean); outline: none; }
.edg-tc-sky .edg-tc-input:focus { border-color: var(--sky); outline: none; }

.edg-tc-submit {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--surface);
  transition: background-color 150ms ease;
}
.edg-tc-ocean .edg-tc-submit { background: var(--ocean); }
.edg-tc-ocean .edg-tc-submit:hover { background: var(--ocean-dark); }
.edg-tc-sky .edg-tc-submit { background: var(--sky); }
.edg-tc-sky .edg-tc-submit:hover { background: var(--sky-dark); }
.edg-tc-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.edg-tc-skip {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.edg-tc-skip:hover { background: var(--bay); }
.edg-tc-skip:disabled { opacity: 0.55; cursor: not-allowed; }

.edg-feedback {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  min-height: 22px;
}
.edg-feedback.is-ok { color: var(--emerald); }
.edg-feedback.is-err { color: var(--danger); }

/* Reveal Card */
.edg-reveal {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edg-reveal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.edg-reveal-badge {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}
.edg-reveal-badge.is-hit { background: var(--emerald-soft); color: var(--emerald); }
.edg-reveal-badge.is-miss { background: var(--bay); color: var(--danger); }
.edg-reveal-score {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.edg-reveal-answer {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.edg-reveal-est {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.edg-picks-title {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.edg-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.edg-pick-chip {
  padding: 5px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.edg-reveal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Summary */
.edg-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.edg-summary-head {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.edg-summary-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
}
.edg-summary-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}
.edg-summary-meters {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.edg-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edg-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
}
.edg-sum-q { font-weight: 600; color: var(--ink); }
.edg-sum-a { font-weight: 700; color: var(--muted); }
.edg-tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .edg-tc-bar { padding: 12px 14px; }
  .edg-tc-body { grid-template-columns: 1fr; }
  .edg-gauge {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .edg-gauge-readout { text-align: left; }
  .edg-gauge-meters { font-size: 20px; }
  .edg-gauge-track { width: 120px; height: 14px; flex-shrink: 0; }
  .edg-tc-ocean .edg-gauge-fill, .edg-tc-sky .edg-gauge-fill {
    top: 0; bottom: 0; left: 0; right: auto; height: 100%; width: var(--edg-pct, 0%);
  }
  .edg-tc-ocean .edg-gauge-pin, .edg-tc-sky .edg-gauge-pin {
    top: 50%; bottom: auto; left: var(--edg-pct, 0%); transform: translate(-50%, -50%);
  }
  .edg-gauge-dir { display: none; }
  .edg-tc-stage { padding: 16px 14px; }
  .edg-tc-prompt { font-size: 21px; }
  .edg-tc-submit, .edg-tc-skip { flex: 1 1 auto; }
}
