/* Final independent scale calibration for the 3D HUD and header controls. */
#m3d-ui {
  --m3d-hint-scale: 1.15;
  --m3d-compass-scale: 1.1;
}

.o-compass {
  bottom: 28.6px;
  transform: translateX(-50%) scale(var(--m3d-compass-scale));
  transform-origin: center bottom;
}

.o-hint {
  bottom: 110.4px;
  transform: translateX(-50%) scale(var(--m3d-hint-scale));
  transform-origin: center bottom;
}

.o-actions {
  gap: 19.2px;
}

.o-actions .o-lang,
.o-actions .o-exit {
  appearance: none;
  display: inline-flex;
  min-height: 52.8px;
  align-items: center;
  justify-content: center;
  padding: 10.8px 18px;
  font-family: var(--m3d-serif);
  font-size: 19.2px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0;
  color: #2a2118;
  text-decoration: none;
  background: #f0e6cf;
  border: 1.2px solid #c9a86a;
  border-radius: 0;
  box-shadow: 0 8.4px 28.8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.o-actions .o-lang:hover,
.o-actions .o-exit:hover {
  color: #fff8e8;
  background: #493321;
  border-color: #e3c98e;
}

.o-actions .o-lang:focus-visible,
.o-actions .o-exit:focus-visible {
  color: #2a2118;
  background: #fff8e8;
  border-color: #ffb36b;
  outline: 3.6px solid #ffb36b;
  outline-offset: 3.6px;
}

.m3d-card .links a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f0e6cf;
  background: #3b2a1d;
  border-color: #c9a86a;
}

.m3d-card .links a:hover {
  color: #2a2118;
  background: #f7efdc;
}
