.camera-panel {
  border: 1px solid rgba(255, 122, 24, 0.30);
  border-radius: 22px;
  padding: 13px;
  display: grid;
  gap: 11px;
  background:
    linear-gradient(180deg, rgba(255, 122, 24, 0.10), rgba(0, 0, 0, 0.16)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 28px rgba(255, 122, 24, 0.035);
}

.camera-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.camera-kicker {
  margin: 0 0 4px;
  color: #ff7a18;
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 1000;
}

.camera-panel h2 {
  margin: 0;
  color: #ecfffb;
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.camera-pill {
  min-width: 82px;
  min-height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: rgba(236, 255, 251, 0.68);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.camera-pill.is-active {
  color: #001412;
  background: linear-gradient(90deg, #ff7a18, #00ffd5);
  border-color: rgba(255, 122, 24, 0.50);
  box-shadow: 0 0 22px rgba(255, 122, 24, 0.34);
}

.camera-pill.is-error {
  color: #fff;
  background: rgba(255, 61, 113, 0.18);
  border-color: rgba(255, 61, 113, 0.42);
}

.camera-preview-wrap {
  min-height: 170px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 122, 24, 0.16), transparent 44%),
    rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 122, 24, 0.24);
}

.camera-preview {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
  background: #020304;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(236, 255, 251, 0.52);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 1000;
  background:
    linear-gradient(rgba(255, 122, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 24, 0.055) 1px, transparent 1px),
    rgba(0, 0, 0, 0.26);
  background-size: 26px 26px;
}

body.camera-active .camera-overlay {
  opacity: 0;
  pointer-events: none;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.camera-stat {
  min-height: 54px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(236, 255, 251, 0.08);
}

.camera-stat span {
  display: block;
  color: rgba(236, 255, 251, 0.45);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 1000;
}

.camera-stat strong {
  display: block;
  margin-top: 7px;
  color: #ecfffb;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.camera-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 19px;
  color: #001412;
  background: linear-gradient(90deg, #ff7a18, #00ffd5);
  box-shadow:
    0 0 30px rgba(255, 122, 24, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.camera-button:active {
  transform: scale(0.985);
}

.camera-button.is-active {
  background: linear-gradient(90deg, #52ff9a, #00ffd5);
}

.camera-help {
  margin: -2px 0 0;
  color: rgba(236, 255, 251, 0.52);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 700;
  text-align: center;
}

body.camera-active #hudCamera {
  color: #ff7a18 !important;
}

@media (max-width: 390px), (max-height: 780px) {
  .camera-panel {
    border-radius: 19px;
    padding: 11px;
    gap: 9px;
  }

  .camera-panel h2 {
    font-size: 19px;
  }

  .camera-pill {
    min-width: 74px;
    min-height: 30px;
    font-size: 9px;
  }

  .camera-preview-wrap,
  .camera-preview {
    min-height: 138px;
  }

  .camera-stat {
    min-height: 48px;
    border-radius: 14px;
    padding: 8px;
  }

  .camera-stat strong {
    font-size: 13px;
  }

  .camera-button {
    min-height: 52px;
    border-radius: 17px;
    font-size: 14px;
  }

  .camera-help {
    font-size: 11px;
  }
}
