/* Portfolio styles: HUD, panels, hints, touch controls and responsive tweaks. */

html, body {
  margin: 0;
  height: 100%;
  background: #0E0C26;
  overflow: hidden;
  overscroll-behavior: none;
}

.room-root {
  height: 100vh;
  height: 100dvh;
}

.hints-wrap {
  left: calc(var(--free-w, 100%) / 2) !important;
  max-width: calc(var(--free-w, 100%) - 48px) !important;
  transition: left .35s ease;
}

.legend {
  transition: opacity .3s ease,visibility .3s ease;
}

html:not([data-room-mode="walk"]) .legend {
  opacity: 0 !important;
  visibility: hidden !important;
}

html:not([data-room-mode]) .touch-pad, html:not([data-room-mode]) .touch-e, html[data-room-mode="intro"] .touch-pad, html[data-room-mode="intro"] .touch-e {
  display: none !important;
}

@media (max-height: 520px) {
  .intro-wrap {
    padding: 12px 16px !important;
    align-items: center !important;
  }
  .intro-card {
    padding: 18px 20px !important;
    gap: 10px !important;
    max-width: 420px !important;
  }
  .intro-card h2 {
    font-size: 26px !important;
  }
  .intro-card p {
    font-size: 14px !important;
  }
}

a {
  color: #FFD23F;
}

a:hover {
  color: #FFE27A;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #FFD23F;
  outline-offset: 3px;
}

canvas:focus, canvas:focus-visible {
  outline: none;
}

.cta-btn {
  transition: background .15s ease,transform .15s ease;
}

.contact-link {
  transition: background .15s ease,border-color .15s ease;
}

.contact-link:hover {
  background: rgba(255,210,63,.14) !important;
  border-color: #FFD23F !important;
}

.cta-btn:hover {
  background: #FFE27A !important;
  transform: translateY(-2px);
}

.hint-btn {
  transition: background .15s ease;
}

.hint-btn:hover {
  background: rgba(45,42,223,.95) !important;
}

.pad-btn {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.touch-pad, .touch-e {
  display: none !important;
}

@media (hover: none) and (pointer: coarse) {
  .touch-pad {
    display: grid !important;
  }
  .touch-e {
    display: flex !important;
  }
  .legend {
    display: none !important;
  }
  .hints-wrap {
    bottom: 156px !important;
  }
}

@media (max-width: 720px) {
  .legend {
    display: none !important;
  }
  .hud-sub {
    display: none !important;
  }
}
