:root {
  color-scheme: light dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #f2f2ee;
}

#app {
  position: relative;
  user-select: none;
}

#scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#scene.is-dragging {
  cursor: grabbing;
}

.new-word-entry {
  position: absolute;
  right: 28px;
  bottom: 52px;
  z-index: 3;
  width: 158px;
  padding: 10px;
  border: 1px solid #161616;
  background: #f2f2ee;
}

.new-word-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: #161616;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
}

.new-word-link img {
  display: block;
  width: 136px;
  height: 136px;
}

.new-word-link span {
  white-space: nowrap;
}

.new-word-entry.is-mobile-link {
  width: auto;
  min-width: 156px;
  min-height: 48px;
  padding: 0;
  background: #161616;
}

.new-word-entry.is-mobile-link .new-word-link {
  min-height: 48px;
  padding: 0 18px;
  color: #f2f2ee;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hud {
  position: absolute;
  z-index: 2;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hud {
  right: 28px;
  bottom: 22px;
  left: 28px;
}

@media (max-width: 680px) {
  .new-word-entry {
    right: 18px;
    bottom: 52px;
  }

  .hud {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .hint {
    display: none;
  }
}
