.sc-shell {
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.sc-shell::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(166, 28, 36, 0.25);
  border-radius: 8px;
  pointer-events: none;
}

.sc-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}

.sc-particle {
  position: absolute;
  top: -24px;
  font-size: 22px;
  animation: scFall var(--dur, 1.8s) ease-in forwards;
}

@keyframes scFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(560px) rotate(var(--rot, 320deg)); opacity: 0; }
}

.sc-shake {
  animation: scShake 0.36s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes scShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* Top mode tabs & sound toggle */
.sc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.sc-tabs {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.sc-tab {
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sc-tab.is-active {
  background: var(--accent);
  color: #ffffff;
}

.sc-sound-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sc-sound-btn:hover {
  border-color: var(--gold);
}

/* Subpoena Banner */
.sc-subpoena {
  background: #fff0ec;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.sc-subpoena-badge {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.sc-subpoena-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent);
}

.sc-subpoena-body {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.sc-subpoena-note {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

/* Live Judge Santa Bench */
.sc-judge-bench {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.sc-santa-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff5e6;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sc-santa-avatar.is-reacting {
  transform: scale(1.1) rotate(-4deg);
}

.sc-judge-bubble {
  flex: 1;
  min-width: 0;
}

.sc-judge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.sc-judge-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.sc-live-meter {
  font-size: 12px;
  font-weight: 700;
  color: var(--pine);
  background: #e5f1ea;
  padding: 2px 10px;
  border-radius: 999px;
}

.sc-live-meter.is-hot {
  color: var(--accent);
  background: #fdeae6;
}

.sc-judge-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

/* Polygraph mini bar */
.sc-poly-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.sc-poly-fill {
  height: 100%;
  width: 35%;
  background: var(--pine);
  border-radius: 999px;
  transition: width 0.35s ease, background-color 0.35s ease;
}

/* Intro Step */
.sc-step-box {
  position: relative;
  z-index: 2;
}

.sc-field-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin-bottom: 14px;
}

.sc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.sc-field input,
.sc-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
}

.sc-chips-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px;
}

.sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sc-chip {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sc-chip:hover,
.sc-chip.is-picked {
  border-color: var(--accent);
  background: #fff0ec;
  color: var(--accent);
}

.sc-intro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.sc-error-msg {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.sc-privacy-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Single-Question Interrogation Stage */
.sc-q-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sc-q-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sc-q-dots {
  display: flex;
  gap: 6px;
}

.sc-dot {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 0.2s ease;
}

.sc-dot.is-done {
  background: var(--pine);
}

.sc-dot.is-now {
  background: var(--accent);
}

.sc-q-prompt {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--ink);
}

.sc-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sc-choice-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 16px;
  min-height: 68px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.sc-choice-btn:hover {
  border-color: var(--gold);
  background: #fff6ea;
  transform: translateY(-1px);
}

.sc-choice-btn.is-picked {
  border-color: var(--accent);
  background: #ffefe9;
  font-weight: 700;
}

.sc-choice-key {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-q-nav {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Surprise Lie Detector Interruption */
.sc-lie-alert {
  background: #fff0ec;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.sc-lie-tag {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.sc-lie-alert h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--accent);
}

.sc-lie-alert p {
  margin: 0 auto 20px;
  max-width: 52ch;
  color: var(--ink);
}

.sc-lie-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Deliberating Loader */
.sc-loading {
  text-align: center;
  padding: 40px 16px;
  position: relative;
  z-index: 2;
}

.sc-gavel {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
  animation: scBounce 0.45s ease-in-out infinite alternate;
}

@keyframes scBounce {
  from { transform: rotate(-22deg) translateY(0); }
  to { transform: rotate(14deg) translateY(-6px); }
}

.sc-loading-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
}

.sc-loading-step {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  min-height: 26px;
}

.sc-loading-track {
  max-width: 360px;
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  margin: 0 auto;
  overflow: hidden;
}

.sc-loading-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* Verdict Certificate */
.sc-verdict-wrap {
  position: relative;
  z-index: 2;
}

.sc-cert {
  background: #fffcf5;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.sc-cert-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.sc-case-id {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.sc-defendant-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.sc-archetype-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pine);
  background: #e7f2ec;
  border: 1px solid rgba(30, 77, 58, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
}

.sc-stamp {
  border: 4px solid var(--accent);
  color: var(--accent);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  transform: rotate(-8deg);
  flex-shrink: 0;
  background: rgba(166, 28, 36, 0.06);
  animation: scStampSlam 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes scStampSlam {
  0% { transform: scale(2.1) rotate(-18deg); opacity: 0; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}

.sc-stamp.is-nice {
  border-color: var(--pine);
  color: var(--pine);
  background: rgba(30, 77, 58, 0.08);
}

.sc-stamp.is-amber {
  border-color: #a66c00;
  color: #8f5c00;
  background: rgba(199, 145, 46, 0.12);
}

.sc-stamp-main {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.sc-stamp-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.sc-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sc-extra-badge {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.sc-extra-badge.is-green {
  background: var(--pine);
}

.sc-meter-block {
  margin-bottom: 18px;
}

.sc-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sc-meter-naughty { color: var(--accent); }
.sc-meter-nice { color: var(--pine); }

.sc-meter-bar {
  height: 16px;
  background: #e4ede8;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.sc-meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.sc-roast-quote {
  margin: 0 0 18px;
  padding: 16px 20px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.sc-event-banner {
  background: #fff0e6;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Reindeer Jury Strip */
.sc-jury-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.sc-juror {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.sc-juror-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: block;
}

.sc-juror-vote {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
  display: block;
  color: var(--accent);
}

.sc-juror-vote.is-innocent {
  color: var(--pine);
}

.sc-findings-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 18px;
}

.sc-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.sc-box-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.sc-counts-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink);
}

.sc-counts-list li {
  margin-bottom: 6px;
}

.sc-gift-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.sc-gift-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.sc-chaos-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--bg);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.sc-chaos-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 100%;
  margin: 0;
}

.sc-verdict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-action-feedback {
  font-size: 14px;
  font-weight: 600;
  color: var(--pine);
  margin: 10px 0 0;
  min-height: 22px;
}

/* Summon Panel */
.sc-summon-box {
  background: var(--bg);
  border: 2px solid var(--pine);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  z-index: 2;
}

.sc-summon-box.is-spaced {
  margin-top: 22px;
}

.sc-summon-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pine);
  margin-bottom: 4px;
}

.sc-summon-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.sc-summon-head p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.sc-summon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.sc-summon-result {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.sc-summon-preview {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #fff0ec;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.sc-summon-url {
  width: 100%;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  margin-bottom: 10px;
}

.sc-summon-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 640px) {
  .sc-shell {
    padding: 16px 12px;
  }

  .sc-judge-bench {
    flex-direction: column;
    text-align: center;
  }

  .sc-judge-meta {
    justify-content: center;
  }

  .sc-field-grid,
  .sc-choices-grid,
  .sc-findings-grid,
  .sc-summon-grid,
  .sc-jury-strip {
    grid-template-columns: 1fr;
  }

  .sc-q-prompt {
    font-size: 20px;
  }

  .sc-cert {
    padding: 18px 14px;
  }

  .sc-cert-top {
    flex-direction: column;
  }

  .sc-tabs {
    width: 100%;
  }

  .sc-tab {
    flex: 1;
    padding: 0 10px;
    font-size: 13px;
  }

  .sc-verdict-actions .btn-primary,
  .sc-verdict-actions .btn-pine,
  .sc-verdict-actions .btn-outline,
  .sc-chaos-bar .btn-outline,
  .sc-intro-foot .btn-primary,
  .sc-summon-btns .btn-pine,
  .sc-summon-btns .btn-outline {
    width: 100%;
  }
}
