/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, Arial, Helvetica, sans-serif;
}
html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #fafafa;
}

/* ---------- PAGE SHELL ---------- */
.page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .4s;
}
.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- 1) SPLASH ---------- */
#splash img {
  width: 160px;
  height: 160px;
}

/* ---------- 2) FORM ---------- */
#infoForm {
  width: 90%;
  max-width: 380px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
#infoForm label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}
#infoForm input,
#infoForm select {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
}
#saveBtn {
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  background: #1976d2;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- 3) COMPASS ---------- */
#compassBox {
  position: relative;
  width: 320px;
  height: 320px;
}
#compassBox img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#hand {
  transform-origin: center;
  will-change: transform;
}

/* ---------- ORIENTATION BANNER ---------- */
#oriBanner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(25, 118, 210, .9);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .5px;
  z-index: 10;
}