/* Samme mørk bakgrunn som siden – fjerner hvitt i toppen på iOS Safari */
html, body {
  background: #080808;
}

#webGLApp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#webGLApp canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════
   COMPASS LOGO
   ═══════════════════════════════════════════════ */

.compass-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: auto;
  animation: compass-float 7s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* ── Glass body ──────────────────────────────── */
.compass-glass {
  --size: min(85vw, 480px);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SVG bezel ───────────────────────────────── */
.compass-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compass-ticks {
  transform-origin: 200px 200px;
}

.compass-deco-ring {
  transform-origin: 200px 200px;
  animation: compass-deco-spin 90s linear infinite;
}

/* ── Center text ─────────────────────────────── */
.compass-center-text {
  --title-size: clamp(2.5rem, 8.2vw, 5rem);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-align: center;
}

.compass-label {
  font-family: "Inter", sans-serif;
  font-size: calc(var(--title-size) * 0.38);
  font-weight: 600;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

.compass-divider {
  display: block;
  width: 70%;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 30%,
    rgba(255, 255, 255, 0.22) 70%,
    transparent 100%
  );
  margin: 0.2em 0 0.15em;
}

.compass-title {
  font-family: "Inter", sans-serif;
  font-size: var(--title-size);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.06),
    0 2px 14px rgba(0, 0, 0, 0.5);
  line-height: 0.92;
}

/* ── Outer glow ring ─────────────────────────── */
.compass-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(
    from 0deg,
    rgba(230, 50, 50, 0.25) 0deg,
    transparent 30deg,
    transparent 330deg,
    rgba(230, 50, 50, 0.25) 360deg
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: compass-glow-pulse 4s ease-in-out infinite;
}

/* ── Contact under compass ───────────────────── */
.compass-contact {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  text-align: center;
}

.compass-contact-link {
  color: rgba(255, 255, 255, 0.86);
  font-family: "Inter", sans-serif;
  font-size: clamp(0.9rem, 2.2vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.compass-contact-link:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════
   MOBILE: under kompasset
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .compass-wrap {
    gap: 1.75rem;
  }

  .compass-wrap .compass-glass {
    flex-shrink: 0;
  }

  .compass-contact {
    flex-direction: column;
    gap: 0.75rem;
  }

  .compass-contact-link {
    font-size: 0.94rem;
    color: #fff;
  }

  .compass-contact-link:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  }
}

/* ── SVG dial rotation ───────────────────────── */
#compass-dial {
  transform-box: fill-box;
  transform-origin: center center;
}

/* ── Tap hint text (mobile, bottom center) ── */
.compass-tap-hint {
  position: fixed;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  z-index: 12;
  pointer-events: none;
}

@media (min-width: 769px) {
  .compass-tap-hint {
    display: none;
  }
}

/* ── Animations ──────────────────────────────── */
@keyframes compass-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes compass-deco-spin {
  to { transform: rotate(360deg); }
}

@keyframes compass-glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}