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

html, body {
  width: 100%;
  height: 100%;
  background: #050510;
  color: #00ff88;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Permission overlay */
#permission-overlay {
  position: fixed;
  inset: 0;
  background: #050510;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  gap: 20px;
}

#permission-overlay.hidden {
  display: none;
}

#permission-text {
  font-size: 16px;
  opacity: 0.8;
}

#permission-btn {
  background: transparent;
  border: 1px solid #00ff88;
  color: #00ff88;
  padding: 10px 30px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* HUD layout */
#hud {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Top bar */
#top-bar {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  flex-shrink: 0;
  padding: 0 12px;
  position: relative;
}

/* Compass bar */
#compass-bar {
  width: 50%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  letter-spacing: 4px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

#compass-bar .compass-item {
  white-space: nowrap;
  transition: opacity 0.1s;
  padding: 0 10px;
}

#compass-bar .compass-center {
  color: #00ff88;
  font-weight: bold;
  font-size: 22px;
  border-bottom: 2px solid #ff3333;
  padding: 0 8px;
}

/* Content area */
#content {
  flex: 1;
  display: flex;
  padding: 20px 24px;
  gap: 24px;
}

#left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

#right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
}

/* Info blocks */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#right-col .info-block {
  align-items: flex-end;
}

.label {
  font-size: 24px;
  opacity: 0.6;
  letter-spacing: 2px;
}

.big-number {
  font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 120px;
  line-height: 1;
}

.big-number .unit {
  font-family: 'Courier New', Courier, monospace;
  font-weight: normal;
  font-size: 32px;
  opacity: 0.7;
}

.secondary {
  font-size: 28px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tertiary {
  font-size: 26px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clock {
  font-family: 'Courier New', Courier, monospace;
  font-size: 40px;
  opacity: 0.8;
}

.date {
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  opacity: 0.6;
}

.o2-icon {
  font-size: 18px;
  font-weight: bold;
  opacity: 0.8;
  margin-left: 8px;
  vertical-align: middle;
}

.drive-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 28px;
  opacity: 0.7;
  white-space: nowrap;
}

.datetime {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  opacity: 0.5;
  white-space: nowrap;
}

/* SVG icon sizing */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #00ff88;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* Reset hint */
#distance {
  cursor: pointer;
}

/* Visitor counter */
#visitor-counter {
  font-size: 10px;
  opacity: 0.3;
  color: #00ff88;
  font-family: 'Courier New', Courier, monospace;
  white-space: nowrap;
  position: absolute;
  right: 12px;
}