* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  color: #1f1f1f;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.workspace {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.stage-card {
  position: relative;
  width: min(96vmin, 1080px);
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  user-select: none;
}

body.portrait-mode:not(.clean-mode) .stage-card {
  width: 100vw;
  height: min(100dvh, 168vw);
  aspect-ratio: auto;
}

body.clean-mode {
  justify-content: flex-start;
  align-items: flex-start;
}

body.clean-mode .workspace {
  width: auto;
  height: auto;
}

body.clean-mode .stage-card {
  width: 1080px;
  height: 1080px;
}

#shader-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
}
