:root {
  --bg-deep: #140b06;
  --wood-dark: #24140b;
  --wood-mid: #381f11;
  --wood-trim: #6e4123;
  --parchment: #fdf5e2;
  --parchment-muted: #e6d4b3;
  --texas-green: #0d6e43;
  --texas-green-dark: #084d2e;
  --stunt-gold: #f5b82e;
  --stunt-amber: #e68a1e;
  --stunt-red: #c92d22;
  --stunt-red-hover: #df3a2e;
  --ink-dark: #1a1008;
  --text-light: #fff9eb;
  --text-dim: #d4be98;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.jct-app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Top Control Strip */
.jct-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  background: linear-gradient(180deg, #2b180d 0%, #1b0f08 100%);
  border-bottom: 1px solid var(--wood-trim);
  flex-shrink: 0;
  z-index: 30;
}

/* Illustrated Comic Logo (Identical on Desktop & Mobile!) */
.jct-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.jct-brand-logo {
  display: block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.jct-burger {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 245, 220, 0.12);
  border: 1.5px solid rgba(230, 195, 135, 0.42);
  color: var(--parchment);
  cursor: pointer;
  flex-shrink: 0;
}

.jct-burger:active {
  background: rgba(245, 184, 46, 0.28);
}

.jct-topbar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jct-mobile-only {
  display: none !important;
}

.jct-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 245, 220, 0.08);
  color: var(--parchment);
  border: 1px solid rgba(230, 195, 135, 0.28);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.jct-icon {
  flex-shrink: 0;
}

.jct-chip:hover {
  background: rgba(245, 184, 46, 0.22);
}

.jct-chip:active {
  transform: translateY(1px);
}

.jct-chip.active-retro {
  background: var(--texas-green);
  border-color: #9be8c3;
  color: #ffffff;
}

.jct-chip.muted {
  opacity: 0.65;
}

.jct-dl-chip {
  text-decoration: none;
  background: var(--texas-green);
  border-color: #7ee2b3;
  color: #ffffff;
}

.jct-dl-chip:hover {
  background: #128752;
}

/* Main Stage & Retina Canvas */
.jct-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #120904;
}

#jct-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}

#jct-ui-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Modal Backdrops & Saloon Wood Panels */
.jct-modal-backdrop {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(14, 7, 3, 0.28);
  overflow-y: auto;
}

.jct-light-backdrop {
  background: rgba(14, 7, 3, 0.18);
}

.jct-panel {
  width: 100%;
  max-height: calc(100% - 8px);
  overflow-y: auto;
  background: linear-gradient(180deg, #331c0f 0%, #211209 100%);
  border: 2px solid #8c562f;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 232, 185, 0.18);
  padding: 20px 22px;
  text-align: center;
}

.jct-title-panel {
  max-width: 440px;
}

.jct-compact-panel {
  max-width: 420px;
}

.jct-results-panel {
  max-width: 480px;
}

.jct-wide-panel {
  max-width: 680px;
  text-align: left;
}

/* Iconic Johnny Crash Highway Sign Title Header */
.jct-highway-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.jct-sign-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  color: var(--stunt-gold);
  margin-bottom: 2px;
}

.jct-highway-sign h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: #ffd23f;
  text-shadow: 0 3px 0 #7a240e, 0 5px 12px rgba(0, 0, 0, 0.6);
}

.jct-sign-plate {
  margin-top: 6px;
  display: inline-block;
  background: var(--texas-green);
  color: #ffffff;
  border: 2.5px solid #f2fbf6;
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.5deg);
}

.jct-tagline {
  margin: 8px 0 14px;
  font-size: 12.5px;
  color: var(--parchment-muted);
}

.jct-panel h2 {
  margin: 4px 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--parchment);
}

.jct-subtext {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.jct-body-copy {
  margin: 10px 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--parchment);
  text-align: left;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(230, 190, 130, 0.16);
  border-radius: 8px;
  padding: 11px 13px;
}

.jct-badge {
  display: inline-block;
  background: rgba(245, 184, 46, 0.16);
  color: var(--stunt-gold);
  border: 1px solid rgba(245, 184, 46, 0.4);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.jct-badge.success {
  background: rgba(13, 110, 67, 0.35);
  border-color: #46c98b;
  color: #8affc4;
}

.jct-badge.warn {
  background: rgba(201, 45, 34, 0.28);
  border-color: #f06d61;
  color: #ffb8b0;
}

/* Buttons */
.jct-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jct-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.jct-btn {
  appearance: none;
  border: 1.5px solid #966038;
  background: linear-gradient(180deg, #4d2b17 0%, #361d0f 100%);
  color: var(--parchment);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.jct-btn:hover {
  background: linear-gradient(180deg, #5e351d 0%, #422413 100%);
  border-color: var(--stunt-gold);
}

.jct-btn:active {
  transform: translateY(1px);
}

.jct-btn-primary {
  background: linear-gradient(180deg, var(--stunt-red-hover) 0%, #a31f16 100%);
  border-color: #ff9a80;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(201, 45, 34, 0.35);
}

.jct-btn-primary:hover {
  background: linear-gradient(180deg, #ef473a 0%, #b8251b 100%);
  border-color: #ffe08a;
}

.jct-btn-secondary {
  background: linear-gradient(180deg, var(--texas-green) 0%, var(--texas-green-dark) 100%);
  border-color: #62c496;
  color: #ffffff;
}

.jct-btn-secondary:hover {
  background: linear-gradient(180deg, #128450 0%, #0b5c37 100%);
}

.jct-btn-ghost {
  background: rgba(255, 245, 225, 0.06);
  border-color: rgba(212, 190, 152, 0.25);
  color: var(--parchment-muted);
  font-size: 12.5px;
}

.jct-btn-danger {
  background: rgba(160, 28, 22, 0.25);
  border-color: rgba(235, 95, 85, 0.45);
  color: #ff9f96;
}

.jct-controls-pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--stunt-gold);
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid rgba(245, 184, 46, 0.28);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 12px;
}

.jct-safety-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(230, 190, 130, 0.16);
  font-size: 11px;
  line-height: 1.38;
  color: var(--text-dim);
}

/* Level Select Grid */
.jct-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.jct-header-actions {
  display: flex;
  gap: 8px;
}

.jct-rep-meter {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}

.jct-rep-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--texas-green) 0%, var(--stunt-gold) 100%);
  transition: width 0.3s ease;
}

.jct-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}

.jct-level-card {
  appearance: none;
  text-align: left;
  background: rgba(255, 245, 225, 0.06);
  border: 1.5px solid rgba(212, 175, 120, 0.3);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--parchment);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.jct-level-card:hover:not(.locked) {
  background: rgba(245, 184, 46, 0.14);
  border-color: var(--stunt-gold);
  transform: translateY(-1px);
}

.jct-level-card.starred {
  border-color: #f5c33b;
  background: rgba(245, 184, 46, 0.11);
}

.jct-level-card.locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.jct-level-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.jct-level-num {
  color: var(--stunt-gold);
}

.jct-level-status {
  color: #8affc4;
}

.jct-level-card.starred .jct-level-status {
  color: #ffe059;
}

.jct-level-card.locked .jct-level-status {
  color: var(--text-dim);
}

.jct-level-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.jct-level-goal {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.25;
}

/* Post-Flight Results + Hospital Cast Portrait */
.jct-results-body {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 10px 0 14px;
  text-align: left;
}

.jct-injury-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(230, 190, 130, 0.22);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.jct-injury-img {
  width: 52px;
  height: 112px;
  object-fit: contain;
}

.jct-injury-img.retro {
  width: 42px;
  height: 100px;
  image-rendering: pixelated;
}

.jct-injury-caption {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--stunt-gold);
  line-height: 1.2;
}

.jct-score-breakdown {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(230, 190, 130, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
}

.jct-score-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  color: var(--parchment-muted);
}

.jct-score-line strong {
  color: var(--parchment);
  font-variant-numeric: tabular-nums;
}

.jct-score-line.total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(230, 190, 130, 0.24);
  font-size: 15px;
  font-weight: 800;
  color: var(--stunt-gold);
}

.jct-score-line.total strong {
  color: #ffe059;
}

.jct-score-target {
  margin-top: 4px;
  font-size: 11.5px;
  color: #8affc4;
}

.jct-judge-quote {
  margin: 8px 0 0;
  font-size: 12px;
  font-style: italic;
  line-height: 1.38;
  color: var(--parchment);
}

/* Scrapbook Polaroids & Endings */
.jct-scrapbook-blurb {
  margin: 0 0 12px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--stunt-gold);
  border-radius: 4px;
  font-size: 13px;
  font-style: italic;
  color: var(--parchment);
}

.jct-polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.jct-polaroid-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(230, 195, 135, 0.25);
  border-radius: 8px;
  padding: 8px;
}

.jct-polaroid-thumb {
  width: 54px;
  height: 56px;
  flex-shrink: 0;
  background-color: #2b241e;
  border: 3px solid #fcfaf2;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dim);
}

.jct-polaroid-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jct-polaroid-meta strong {
  font-size: 13px;
  color: var(--stunt-gold);
}

.jct-polaroid-meta span {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.25;
}

.jct-ending-frame {
  margin: 10px auto;
  border: 4px solid #fcfaf2;
  border-radius: 4px;
  overflow: hidden;
  max-width: 280px;
  background: #000;
}

.jct-ending-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.jct-help-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jct-help-card {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(230, 195, 135, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.jct-help-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--stunt-gold);
}

.jct-help-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--parchment-muted);
}

/* Coaching & Feedback Toast */
.jct-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 15, 8, 0.94);
  color: #fff6dc;
  border: 1.5px solid var(--stunt-gold);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  max-width: min(92vw, 540px);
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 50;
}

.jct-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .jct-kbd {
    display: none;
  }
  .jct-desktop-only {
    display: none !important;
  }
  .jct-burger {
    display: inline-flex;
  }
  .jct-topbar-controls {
    display: none;
    position: absolute;
    top: 48px;
    right: 8px;
    min-width: 205px;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 10px;
    background: linear-gradient(180deg, #331c0f 0%, #1d1008 100%);
    border: 1.5px solid var(--wood-trim);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72);
    z-index: 60;
  }
  .jct-topbar-controls.open {
    display: flex;
  }
  .jct-topbar-controls .jct-mobile-only {
    display: inline-flex !important;
  }
  .jct-topbar-controls .jct-chip {
    width: 100%;
    padding: 9px 11px;
    font-size: 13px;
    justify-content: flex-start;
  }
}

.jct-btn-offline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  background: linear-gradient(180deg, #0d6e43 0%, #084d2e 100%);
  border-color: #62c496;
  color: #ffffff;
}

.jct-btn-offline:hover {
  background: linear-gradient(180deg, #128450 0%, #0b5c37 100%);
  border-color: #a8f0ce;
}

@media (max-width: 520px) {
  .jct-desktop-only {
    display: none;
  }
  .jct-panel {
    padding: 14px 14px;
  }
  .jct-panel h2 {
    font-size: 18px;
  }
  .jct-results-body {
    flex-direction: column;
    align-items: center;
  }
  .jct-injury-box {
    width: 100%;
    flex-direction: row;
    gap: 12px;
    padding: 6px 12px;
  }
  .jct-injury-img {
    height: 64px;
  }
  .jct-btn-row,
  .jct-help-columns {
    grid-template-columns: 1fr;
  }
}

/* Audio Volume Sliders */
.jct-slider-group {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(230, 190, 130, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jct-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--parchment);
}

.jct-slider-row label {
  min-width: 82px;
  font-weight: 700;
}

.jct-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--stunt-gold);
  cursor: pointer;
}

.jct-slider-val {
  min-width: 34px;
  text-align: right;
  font-weight: 800;
  color: var(--stunt-gold);
  font-variant-numeric: tabular-nums;
}

/* Share Scorecard Preview Modal */
.jct-share-panel {
  max-width: 520px;
}

.jct-share-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(245, 184, 46, 0.55);
  margin: 8px 0 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

/* Online Leaderboard & Hall of Fame */
.jct-lb-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
}

.jct-lb-tab {
  flex: 1;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid rgba(230, 190, 130, 0.28);
  background: rgba(0, 0, 0, 0.32);
  color: var(--parchment-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}

.jct-lb-tab:hover {
  border-color: rgba(245, 184, 46, 0.55);
  color: var(--parchment);
}

.jct-lb-tab.active {
  background: linear-gradient(180deg, rgba(245, 184, 46, 0.28) 0%, rgba(190, 118, 22, 0.25) 100%);
  border-color: var(--stunt-gold);
  color: #ffe059;
}

.jct-lb-refresh {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 7px 10px;
  font-size: 14px;
}

.jct-lb-list {
  max-height: 245px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(230, 190, 130, 0.2);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.jct-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--parchment-muted);
  background: rgba(255, 255, 255, 0.03);
}

.jct-lb-row.top {
  background: rgba(245, 184, 46, 0.13);
  color: #ffe059;
}

.jct-lb-row.me {
  border: 1px solid rgba(114, 232, 168, 0.55);
  background: rgba(22, 128, 79, 0.26);
  color: #e9fff3;
}

.jct-lb-rank {
  min-width: 28px;
  font-weight: 800;
  color: var(--stunt-gold);
  font-variant-numeric: tabular-nums;
}

.jct-lb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.jct-lb-mode {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.1);
  color: var(--parchment-muted);
  vertical-align: middle;
}

.jct-lb-val {
  color: var(--parchment);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jct-lb-row.top .jct-lb-val {
  color: #ffe059;
}

.jct-lb-empty {
  padding: 22px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--parchment-muted);
  line-height: 1.45;
}

.jct-lb-empty small {
  color: var(--text-dim);
}

.jct-lb-post-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(230, 190, 130, 0.24);
  border-radius: 8px;
}

.jct-lb-post-bar.jct-lb-posted {
  border-color: rgba(114, 232, 168, 0.5);
  background: rgba(13, 110, 67, 0.25);
  justify-content: space-between;
}

.jct-lb-status {
  font-size: 12.5px;
  font-weight: 700;
  color: #9effcc;
  text-align: left;
}

.jct-callsign-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(230, 190, 130, 0.35);
  background: rgba(18, 9, 4, 0.78);
  color: var(--parchment);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.jct-callsign-input:focus {
  border-color: var(--stunt-gold);
  box-shadow: 0 0 0 2px rgba(245, 184, 46, 0.22);
}

.jct-lb-post-bar .jct-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 12.5px;
  white-space: nowrap;
}

.jct-lb-msg {
  margin: -4px 0 10px;
  font-size: 11.5px;
  color: #ffb085;
  text-align: left;
}

@media (max-width: 520px) {
  .jct-lb-tabs {
    flex-wrap: wrap;
  }
  .jct-lb-tab {
    font-size: 11.5px;
    padding: 6px 6px;
  }
  .jct-lb-post-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .jct-lb-post-bar.jct-lb-posted {
    align-items: stretch;
  }
  .jct-lb-status {
    text-align: center;
  }
  .jct-lb-row {
    font-size: 12px;
    padding: 5px 6px;
  }
}

/* Fan Preservation Footer & Legal Notice */
.jct-fan-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(230, 190, 130, 0.14);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
}

.jct-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--stunt-gold);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.jct-link-btn:hover {
  color: #ffe494;
}

.jct-legal-section p {
  margin: 0 0 8px;
}

.jct-legal-section p:last-child {
  margin-bottom: 0;
}

/* Gamepad Status Badge & 10-Foot Console Focus Ring */
.jct-gp-badge {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 110, 67, 0.35);
  border: 1px solid #62c496;
  color: #a8f0ce;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.jct-gp-badge.connected {
  display: inline-flex;
}

.jct-gp-focus {
  outline: 3px solid #ffd23f !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(245, 184, 46, 0.32), 0 6px 18px rgba(0, 0, 0, 0.55) !important;
  position: relative;
  z-index: 2;
}

.jct-btn.jct-gp-focus,
.jct-level-card.jct-gp-focus {
  border-color: #ffe484;
  transform: translateY(-1px);
}

.jct-slider-row:has(.jct-gp-focus) {
  background: rgba(245, 184, 46, 0.14);
  border-radius: 6px;
  padding: 4px 6px;
  margin: -4px -6px;
}

/* Video Preview & Floating Trailer Bar */
.jct-video-preview {
  display: block;
  width: 100%;
  max-height: 44vh;
  background: #0d0704;
  border-radius: 8px;
  border: 2px solid rgba(245, 184, 46, 0.55);
  margin: 8px 0 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}

.jct-trailer-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 13, 7, 0.88);
  border: 1.5px solid rgba(245, 184, 46, 0.52);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  z-index: 40;
}

.jct-trailer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--parchment);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jct-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2e2e;
  box-shadow: 0 0 8px rgba(255, 46, 46, 0.9);
  animation: jctRecPulse 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes jctRecPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

