@import "https://fonts.googleapis.com/css2?family=Orbitron:wght@300;400;500;600;700;900&display=swap";

/* ui/src/carlos/CarlosApp.css */
:root {
  --gold: #f0c030;
  --gold-bright: gold;
  --gold-deep: #c9960c;
  --gold-dim: #f0c030a6;
  --gold-glow: #f0c03073;
  --gold-border: #f0c03066;
  --gold-bg: #f0c03014;
  --bg: #0c0c1c;
  --bg-dark: #080810;
  --bg-panel: #0c0c1ee6;
  --text: #fff;
  --text-dim: #ffffffbf;
  --text-faint: #ffffff80;
  --red: #ff4040;
  --green: #40d4a0;
  --font: "Orbitron", "Courier New", monospace;
}

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  height: 100dvh;
}

.carlos-hud {
  position: relative;
  display: grid;
  grid-template-areas: "topbar topbar topbar" "left   center right" "bottom bottom bottom";
  grid-template-rows: 72px 1fr 130px;
  grid-template-columns: 265px 1fr 265px;
  overflow: hidden;
  background-color: var(--bg);
  background-image: linear-gradient(#d4af3709 1px, #0000 1px), linear-gradient(90deg, #d4af3709 1px, #0000 1px);
  background-size: 44px 44px;
  height: 100dvh;
}

.carlos-hud:before, .carlos-hud:after {
  content: "";
  position: fixed;
  z-index: 5;
  pointer-events: none;
  width: 38px;
  height: 38px;
}

.carlos-hud:before {
  border-top: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
  top: 8px;
  left: 8px;
}

.carlos-hud:after {
  border-top: 1px solid var(--gold-dim);
  border-right: 1px solid var(--gold-dim);
  top: 8px;
  right: 8px;
}

.hud-topbar {
  grid-area: topbar;
  display: flex;
  border-bottom: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 20;
  background: #04040eeb;
  justify-content: space-between;
  align-items:  center;
  padding: 0 22px;
}

.hud-topbar:after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 20%, var(--gold) 50%, var(--gold-dim) 80%, transparent 100%);
  opacity: .6;
  height: 1px;
  bottom: 0;
  left: 0;
  right: 0;
}

.hud-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  letter-spacing: .28em;
  color: var(--gold-bright);
  text-shadow: 0 0 18px #ffd700e6, 0 0 40px #ffd70080, 0 0 80px #ffd70033;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.brand-full {
  letter-spacing: .16em;
  color: var(--text-dim);
  font-size: 6px;
  font-weight: 300;
  line-height: 1;
}

.brand-pills {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.status-pill {
  letter-spacing: .1em;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  white-space: nowrap;
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 6px;
  font-weight: 600;
}

.hud-clock {
  text-align: right;
}

.clock-time {
  color: var(--gold-bright);
  letter-spacing: .06em;
  text-shadow: 0 0 14px #ffd700b3, 0 0 30px #ffd7004d;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.clock-meta {
  letter-spacing: .14em;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
  font-size: 6px;
  font-weight: 300;
  line-height: 1.7;
}

.panel-title {
  letter-spacing: .28em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 7px;
  padding: 7px 12px 6px;
  font-size: 7.5px;
  font-weight: 700;
}

.panel-dot {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: dotPulse 2.5s ease-in-out infinite;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.hud-left {
  grid-area: left;
  display: flex;
  overflow: hidden;
  border-right: 1px solid var(--gold-border);
  background: var(--bg-panel);
  flex-direction: column;
}

.vitals-section {
  flex-shrink: 0;
  padding: 8px 12px 10px;
}

.vital-row {
  margin-bottom: 9px;
}

.vital-row:last-child {
  margin-bottom: 0;
}

.vital-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.vital-label {
  letter-spacing: .16em;
  color: var(--text-dim);
  font-size: 6.5px;
  font-weight: 400;
}

.vital-value {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
}

.vital-track {
  overflow: hidden;
  background: #d4af371a;
  border-radius: 2px;
  height: 3px;
}

.vital-fill {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  position: relative;
  border-radius: 2px;
  height: 100%;
  transition: width 1.8s cubic-bezier(.4,0,.2,1);
}

.vital-fill:after {
  content: "";
  position: absolute;
  filter: blur(2px);
  background: #ffffff80;
  width: 5px;
  top: 0;
  bottom: 0;
  right: -1px;
}

.telemetry-section {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--gold-border);
  flex-direction: column;
  flex: 1;
}

.telemetry-feed {
  overflow-y: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 5px 10px;
}

.telemetry-feed::-webkit-scrollbar {
  display: none;
}

.tel-entry {
  letter-spacing: .06em;
  color: var(--text-dim);
  display: flex;
  border-bottom: 1px solid #d4af370a;
  gap: 6px;
  padding: 3px 0;
  font-size: 6.5px;
  font-weight: 300;
  line-height: 1.5;
}

.tel-time {
  color: var(--gold-dim);
  flex-shrink: 0;
  font-weight: 400;
}

.hud-biometric {
  border-top: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  padding: 7px 12px;
}

.bio-line {
  letter-spacing: .1em;
  color: var(--text-dim);
  display: flex;
  align-items:  center;
  gap: 7px;
  font-size: 6.5px;
  font-weight: 300;
}

.bio-dot {
  background: var(--gold);
  box-shadow: 0 0 5px var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
  border-radius: 50%;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
}

.hud-center {
  grid-area: center;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 8px;
}

.orb-wrapper {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 320px;
  height: 320px;
  transition: transform .2s;
}

.orb-wrapper:hover {
  transform: scale(1.025);
}

.orb-wrapper:active {
  transform: scale(.975);
}

.orb-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.orb-ring-1 {
  position: absolute;
  animation: ring1Spin 7s linear infinite;
  pointer-events: none;
  border: 1.5px solid #d4af378c;
  border-radius: 50%;
  width: 268px;
  height: 67px;
  top: 50%;
  left: 50%;
}

.orb-ring-2 {
  position: absolute;
  animation: ring2Spin 12s linear infinite;
  pointer-events: none;
  border: 1px solid #d4af3747;
  border-radius: 50%;
  width: 292px;
  height: 73px;
  top: 50%;
  left: 50%;
}

.orb-orbit {
  position: absolute;
  animation: ring3Spin 28s linear infinite;
  pointer-events: none;
  border: 1px dashed #d4af3726;
  border-radius: 50%;
  width: 316px;
  height: 79px;
  top: 50%;
  left: 50%;
}

@keyframes ring1Spin {
  from {
    transform: translate(-50%, -50%)scaleY(.25)rotate(0);
  }

  to {
    transform: translate(-50%, -50%)scaleY(.25)rotate(360deg);
  }
}

@keyframes ring2Spin {
  from {
    transform: translate(-50%, -50%)scaleY(.25)rotate(55deg);
  }

  to {
    transform: translate(-50%, -50%)scaleY(.25)rotate(415deg);
  }
}

@keyframes ring3Spin {
  from {
    transform: translate(-50%, -50%)scaleY(.25)rotate(-18deg);
  }

  to {
    transform: translate(-50%, -50%)scaleY(.25)rotate(342deg);
  }
}

.orb-cta {
  position: absolute;
  letter-spacing: .35em;
  color: var(--gold);
  opacity: .6;
  white-space: nowrap;
  animation: ctaPulse 3.5s ease-in-out infinite;
  pointer-events: none;
  font-size: 7.5px;
  font-weight: 600;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes ctaPulse {
  0%, 100% {
    opacity: .6;
  }

  50% {
    opacity: .2;
  }
}

.orb-wrapper:hover .orb-cta {
  opacity: 1;
  animation: none;
}

.orb-cta.voice-active {
  opacity: 1;
  animation: activePulse 1.1s ease-in-out infinite;
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--gold);
}

@keyframes activePulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .45;
  }
}

.hud-right {
  grid-area: right;
  display: flex;
  overflow: hidden;
  border-left: 1px solid var(--gold-border);
  background: var(--bg-panel);
  flex-direction: column;
}

.radar-container {
  display: flex;
  border-bottom: 1px solid var(--gold-border);
  flex-shrink: 0;
  justify-content: center;
  padding: 10px;
}

.radar-canvas {
  display: block;
  border-radius: 50%;
}

.diag-section {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.diag-row {
  display: flex;
  border-bottom: 1px solid #d4af370d;
  justify-content: space-between;
  align-items:  center;
  padding: 6px 12px;
}

.diag-label {
  letter-spacing: .14em;
  color: var(--text-dim);
  font-size: 6.5px;
  font-weight: 400;
}

.diag-value {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
}

.diag-value.ok {
  color: var(--green);
}

.diag-value.bad {
  color: var(--red);
}

.latency-graph {
  display: flex;
  border-bottom: 1px solid #d4af371a;
  align-items:  flex-end;
  gap: 2px;
  height: 34px;
  margin: 6px 12px 0;
}

.lat-bar {
  background: linear-gradient(to top, var(--gold-deep), var(--gold));
  opacity: .65;
  border-radius: 1px 1px 0 0;
  flex: 1;
  min-height: 2px;
  transition: height .4s;
}

.lat-bar:last-child {
  opacity: 1;
}

.hud-bottom {
  grid-area: bottom;
  border-top: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 310px 1fr;
  position: relative;
  background: #04040cf0;
}

.hud-bottom:before {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  height: 1px;
  top: 0;
  left: 0;
  right: 0;
}

.bottom-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 16px;
}

.info-line {
  letter-spacing: .09em;
  color: var(--text-faint);
  font-size: 6.5px;
  font-weight: 300;
  line-height: 1.65;
}

.info-line b {
  color: var(--text-dim);
  font-weight: 500;
}

.objective-card {
  display: flex;
  border-left: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px 8px;
}

.objective-label {
  letter-spacing: .32em;
  color: var(--gold);
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 7px;
  font-weight: 700;
}

.obj-pulse {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: dotPulse 1.8s ease-in-out infinite;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.objective-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 8px;
}

.obj-stat {
  text-align: center;
}

.obj-stat-val {
  color: var(--gold);
  text-shadow: 0 0 12px #d4af3759;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.obj-stat-lbl {
  letter-spacing: .14em;
  color: var(--text-dim);
  margin-top: 2px;
  font-size: 6px;
  font-weight: 300;
}

.obj-prog-labels {
  display: flex;
  color: var(--text-dim);
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 6px;
}

.obj-prog-track {
  overflow: hidden;
  background: #d4af371a;
  border-radius: 2px;
  height: 3px;
}

.obj-prog-fill {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 2px;
  height: 100%;
  transition: width 2s;
}

.obj-status {
  letter-spacing: .2em;
  color: var(--gold);
  text-align: right;
  opacity: .75;
  margin-top: 5px;
  font-size: 6px;
  font-weight: 600;
}

.chat-overlay {
  position: fixed;
  z-index: 100;
  display: flex;
  pointer-events: none;
  flex-direction: column;
  justify-content: flex-end;
  inset: 0;
}

.chat-backdrop {
  position: absolute;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  background: #04040cb3;
  transition: opacity .3s;
  inset: 0;
}

.chat-overlay.open .chat-backdrop {
  opacity: 1;
  pointer-events: all;
}

.chat-panel {
  position: relative;
  z-index: 1;
  display: flex;
  background: #0a0a1afc;
  border-top: 2px solid #f0c030a6;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  flex-direction: column;
  height: 62vh;
  transition: transform .38s cubic-bezier(.32,.72,0,1);
  transform: translateY(102%);
  box-shadow: 0 -24px 64px #f0c0302e, 0 -4px 20px #f0c0301f;
}

.chat-overlay.open .chat-panel {
  pointer-events: all;
  transform: translateY(0);
}

.chat-panel:before {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .85;
  height: 1px;
  top: -1px;
  left: 8%;
  right: 8%;
}

.chat-header {
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  padding: 11px 16px;
}

.chat-header-left {
  display: flex;
  align-items:  center;
  gap: 10px;
}

.chat-header-title {
  letter-spacing: .28em;
  color: var(--gold);
  font-size: 8.5px;
  font-weight: 700;
}

.chat-conn {
  letter-spacing: .1em;
  color: var(--text-dim);
  display: flex;
  align-items:  center;
  gap: 5px;
  font-size: 6.5px;
  font-weight: 300;
}

.conn-dot {
  background: var(--gold-dim);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  transition: background .3s, box-shadow .3s;
}

.conn-dot.live {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
}

.chat-close {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font);
  letter-spacing: .14em;
  cursor: pointer;
  background: none;
  border-radius: 2px;
  padding: 5px 12px;
  transition: background .2s;
  font-size: 7.5px;
  font-weight: 600;
}

.chat-close:hover {
  background: #d4af371a;
}

.voice-strip {
  border-bottom: 1px solid var(--gold-border);
  letter-spacing: .25em;
  color: var(--gold);
  display: flex;
  background: #d4af370d;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 5px 16px;
  font-size: 7.5px;
  font-weight: 600;
}

.voice-strip-dot {
  background: var(--gold);
  animation: dotPulse .8s ease-in-out infinite;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.chat-feed {
  overflow-y: auto;
  display: flex;
  scrollbar-width: thin;
  scrollbar-color: #d4af3733 transparent;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 14px 16px;
}

.chat-feed::-webkit-scrollbar {
  width: 4px;
}

.chat-feed::-webkit-scrollbar-thumb {
  background: #d4af3733;
  border-radius: 2px;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 8px;
}

.chat-empty-hint {
  letter-spacing: .2em;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 300;
}

.bubble {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 78%;
}

.bubble-user {
  align-self:  flex-end;
  align-items:  flex-end;
}

.bubble-carlos {
  align-self:  flex-start;
  align-items:  flex-start;
}

.bubble-sender {
  letter-spacing: .2em;
  color: var(--gold);
  opacity: .65;
  padding: 0 4px;
  font-size: 6.5px;
  font-weight: 600;
}

.bubble-text {
  letter-spacing: .04em;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
}

.bubble-user .bubble-text {
  color: #06060e;
  background: linear-gradient(135deg, #e8b820 0%, gold 50%, #d4a010 100%);
  border-bottom-right-radius: 2px;
  font-weight: 600;
  box-shadow: 0 3px 24px #ffd70080, 0 1px 6px #ffd7004d;
}

.bubble-carlos .bubble-text {
  color: #fff;
  backdrop-filter: blur(8px);
  background: #101024f2;
  border: 1px solid #f0c03073;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 16px #f0c03014, inset 0 0 0 1px #f0c0300f;
}

.bubble-time {
  letter-spacing: .1em;
  color: var(--text-faint);
  padding: 0 4px;
  font-size: 6.5px;
  font-weight: 300;
}

.bubble-thinking {
  color: var(--gold);
  opacity: .55;
  animation: thinkPulse 1.5s ease-in-out infinite;
}

@keyframes thinkPulse {
  0%, 100% {
    opacity: .55;
  }

  50% {
    opacity: .18;
  }
}

.streaming-cursor {
  display: inline-block;
  background: var(--gold);
  vertical-align: middle;
  animation: blink .85s step-end infinite;
  border-radius: 1px;
  width: 7px;
  height: 13px;
  margin-left: 3px;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.chat-bar {
  border-top: 1px solid var(--gold-border);
  display: flex;
  background: #04040ecc;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
  padding: 11px 14px;
}

.chat-input {
  color: #fff;
  font-family: var(--font);
  letter-spacing: .08em;
  outline: none;
  background: #f0c0300f;
  border: 1px solid #f0c03073;
  border-radius: 3px;
  flex: 1;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
  font-size: 10px;
  font-weight: 400;
}

.chat-input:focus {
  border-color: #ffd700cc;
  box-shadow: 0 0 0 2px #ffd7001f, 0 0 16px #ffd7001a;
}

.chat-input::placeholder {
  color: #ffffff59;
  letter-spacing: .16em;
  font-size: 9px;
}

.btn-send {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #080810;
  font-family: var(--font);
  letter-spacing: .2em;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 10px 18px;
  transition: box-shadow .2s, opacity .2s;
  font-size: 8px;
  font-weight: 700;
}

.btn-send:hover:not(:disabled) {
  box-shadow: 0 0 16px #d4af3773;
}

.btn-send:disabled {
  opacity: .35;
  cursor: default;
}

.btn-voice-chat {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  cursor: pointer;
  background: none;
  border-radius: 3px;
  flex-shrink: 0;
  padding: 7px 11px;
  transition: all .2s;
  font-size: 16px;
  line-height: 1;
}

.btn-voice-chat:hover {
  border-color: var(--gold-dim);
  background: #d4af3714;
}

.btn-voice-chat.on {
  border-color: var(--gold);
  animation: voicePulse 1.4s ease-in-out infinite;
  background: #d4af371a;
  box-shadow: 0 0 12px #d4af374d;
}

@keyframes voicePulse {
  0%, 100% {
    box-shadow: 0 0 10px #d4af3740;
  }

  50% {
    box-shadow: 0 0 22px #d4af3799;
  }
}

.lock-screen {
  position: fixed;
  z-index: 300;
  display: flex;
  background-color: var(--bg);
  background-image: linear-gradient(#d4af370a 1px, #0000 1px), linear-gradient(90deg, #d4af370a 1px, #0000 1px);
  background-size: 44px 44px;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.lock-content {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items:  center;
  gap: 22px;
}

.lock-title {
  letter-spacing: .32em;
  color: var(--gold-bright);
  text-shadow: 0 0 30px #ffd700e6, 0 0 70px #ffd70080, 0 0 120px #ffd70033;
  animation: lockGlow 3s ease-in-out infinite;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

@keyframes lockGlow {
  0%, 100% {
    text-shadow: 0 0 30px #ffd700e6, 0 0 70px #ffd70080, 0 0 120px #ffd70033;
  }

  50% {
    text-shadow: 0 0 50px gold, 0 0 100px #ffd700b3, 0 0 160px #ffd70059;
  }
}

.lock-subtitle {
  letter-spacing: .2em;
  color: var(--text-dim);
  text-align: center;
  font-size: 7px;
  font-weight: 300;
}

.lock-acronym {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acronym-row {
  display: flex;
  align-items:  center;
  gap: 14px;
}

.acronym-letter {
  color: var(--gold);
  text-align: center;
  width: 18px;
  font-size: 15px;
  font-weight: 700;
}

.acronym-word {
  letter-spacing: .14em;
  color: var(--text-dim);
  font-size: 8.5px;
  font-weight: 300;
}

.pin-entry {
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 12px;
  width: 265px;
}

.pin-input {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font);
  letter-spacing: .45em;
  text-align: center;
  outline: none;
  background: #d4af370a;
  border-radius: 3px;
  width: 100%;
  padding: 14px 20px;
  transition: border-color .2s, box-shadow .2s;
  font-size: 22px;
  font-weight: 700;
}

.pin-input:focus {
  border-color: #d4af378c;
  box-shadow: 0 0 0 3px #d4af3714, 0 0 22px #d4af371a;
}

.pin-input::placeholder {
  color: #d4af3740;
  letter-spacing: .1em;
  font-size: 12px;
}

.btn-unlock {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #080810;
  font-family: var(--font);
  letter-spacing: .28em;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  width: 100%;
  padding: 14px;
  transition: box-shadow .2s, opacity .2s;
  font-size: 10px;
  font-weight: 700;
}

.btn-unlock:hover:not(:disabled) {
  box-shadow: 0 0 22px #d4af3773;
}

.btn-unlock:disabled {
  opacity: .35;
  cursor: default;
}

.lock-error {
  color: var(--red);
  letter-spacing: .15em;
  text-align: center;
  font-size: 8px;
  font-weight: 400;
}

@media (max-width: 840px) {
  .carlos-hud {
    grid-template-areas: "topbar" "center" "bottom";
    grid-template-columns: 1fr;
    grid-template-rows: 58px 1fr 90px;
  }

  .hud-left, .hud-right {
    display: none;
  }

  .hud-topbar {
    padding: 0 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-pills, .brand-full {
    display: none;
  }

  .clock-time {
    font-size: 20px;
  }

  .clock-meta {
    display: none;
  }

  .orb-wrapper {
    width: 240px;
    height: 240px;
  }

  .orb-ring-1 {
    width: 208px;
    height: 52px;
  }

  .orb-ring-2 {
    width: 225px;
    height: 57px;
  }

  .orb-orbit {
    width: 238px;
    height: 60px;
  }

  .hud-bottom {
    grid-template-columns: 1fr;
  }

  .objective-card {
    border: none;
    padding: 6px 14px;
  }

  .bottom-info {
    display: none;
  }

  .obj-stat-val {
    font-size: 18px;
  }

  .chat-panel {
    height: 76vh;
  }
}
