:root {
  --bg: #090909;
  --panel: rgba(18, 18, 18, 0.96);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #f6f6f6;
  --muted: #b8b8b8;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --green: #1fe052;
  --lime: #9fe12d;
  --yellow: #ffd84a;
  --orange: #ff9b31;
  --red: #ff4e4e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.overlay-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay-card {
  width: 340px;
  height: 255px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  padding: 14px 16px 16px;
}

.overlay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 45%, rgba(255, 255, 255, 0) 100%);
}

.title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 2px;
  text-transform: uppercase;
}

.gauge-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

svg {
  display: block;
  overflow: visible;
}

.arc {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.22));
}

.arc-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 20;
  stroke-linecap: round;
}

.label {
  fill: #dddddd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.label.side {
  fill: #c7c7c7;
  font-size: 10px;
}

.needle {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.hub-outer {
  fill: #111111;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
}

.hub-inner {
  fill: #f5f5f5;
}

.value-row {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.value {
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.unit {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  opacity: 0.95;
}

.status {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.overlay-error {
  max-width: 460px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  color: var(--text);
  line-height: 1.5;
}
