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

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

#kazurin,
#stone {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  visibility: hidden;
  max-width: none;
  max-height: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

#kazurin {
  z-index: 1;
  object-fit: contain;
}

#stone {
  z-index: 2;
  object-fit: contain;
}

#muteBtn {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  right: max(14px, env(safe-area-inset-right));
  z-index: 100;

  width: 42px;
  height: 42px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: #333;

  appearance: none;
  -webkit-appearance: none;

  touch-action: manipulation;
  cursor: pointer;
}

#muteBtn svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

#kickSound {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #muteBtn:hover {
    background: rgba(245, 245, 245, 0.95);
  }
}

#startScreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  touch-action: manipulation;
}

#startScreen.started {
  display: none;
}

#startBtn {
  width: min(60vw, 300px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  cursor: pointer;
}

#startBtn img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (hover: hover) and (pointer: fine) {
  #startBtn:hover {
    opacity: 0.85;
  }
}
